SG_SetGadgetColor | |||||||||
Syntax: | |||||||||
SG_SetGadgetColor(SG_GadgetID_L.l, ColorType_L.l, Color_L.l) | |||||||||
Parameters: | |||||||||
| |||||||||
Description: | |||||||||
Changes the color attribute specified by 'ColorType' of the given #Gadget. RGB() can be used to get a valid color value. To remove the custom color and go back to the default system color, set the 'Color' parameter to -1. The following values are possible for the ColorType parameter: (not every gadget supports all of them) #PB_Gadget_FrontColor : Gadget text #PB_Gadget_BackColor : Gadget background #PB_Gadget_LineColor : Color for gridlines #PB_Gadget_TitleFrontColor: Text color in the title #PB_Gadget_TitleBackColor : Background color in the title #PB_Gadget_GrayTextColor : Color for grayed out text (for disabled gadgets) If the background of a gadget is set to 'Image', then ColorType #PB_Gadget_BackColor change the Image for the background. | |||||||||
Example: | |||||||||
| |||||||||
Remarks: | |||||||||
| |||||||||
|