예제 #1
0
static int iFlatButtonSetBgColorAttrib(Ihandle* ih, const char* value)
{
  iupAttribSet(ih, "BGCOLOR", value);
  iupImageUpdateParent(ih);
  iupdrvRedrawNow(ih);
  return 1;
}
예제 #2
0
static int winButtonSetBgColorAttrib(Ihandle* ih, const char* value)
{
  /* update internal image cache for controls that have the IMAGE attribute */
  if (ih->data->type != IUP_BUTTON_TEXT)
  {
    iupAttribSetStr(ih, "BGCOLOR", value);
    iupImageUpdateParent(ih);
    iupdrvDisplayRedraw(ih);
  }
  return 1;
}
예제 #3
0
파일: iupmot_common.c 프로젝트: LuaDist/iup
int iupdrvBaseSetBgColorAttrib(Ihandle* ih, const char* value)
{
  Pixel color = iupmotColorGetPixelStr(value);
  if (color != (Pixel)-1)
  {
    iupmotSetBgColor(ih->handle, color);

    /* update internal image cache for controls that have the IMAGE attribute */
    iupImageUpdateParent(ih);
  }
  return 1;
}
예제 #4
0
static int winToggleSetBgColorAttrib(Ihandle* ih, const char* value)
{
    (void)value;
    if (ih->data->type==IUP_TOGGLE_IMAGE)
    {
        /* update internal image cache for controls that have the IMAGE attribute */
        iupAttribSet(ih, "BGCOLOR", value);
        iupImageUpdateParent(ih);
        iupdrvRedrawNow(ih);
    }
    return 1;
}