コード例 #1
0
ファイル: iup_flatbutton.c プロジェクト: ivanceras/iup-mirror
static int iFlatButtonSetBgColorAttrib(Ihandle* ih, const char* value)
{
  iupAttribSet(ih, "BGCOLOR", value);
  iupImageUpdateParent(ih);
  iupdrvRedrawNow(ih);
  return 1;
}
コード例 #2
0
ファイル: iupwin_button.c プロジェクト: gcfavorites/tastools
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;
}