static int iFlatButtonSetBgColorAttrib(Ihandle* ih, const char* value) { iupAttribSet(ih, "BGCOLOR", value); iupImageUpdateParent(ih); iupdrvRedrawNow(ih); return 1; }
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; }
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; }
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; }