SG_SetGadgetItemColor

Syntax:

SG_SetGadgetItemColor(SG_GadgetID_L.l, Row_L.l, ColorType_L.l, Color_L.l)

Parameters:

SG_GadgetID_L

=

The number of the gadget

Row_L

=

the position of the item in the list

ColorType_L

=

the type of the element which change the color

Color_L

=

the color value


Description:

Changes the color attribute specified by 'ColorType' of the given #Gadget item. RGB() can be used to get a valid color value. If a gadget item has no color set for a specific ColorType, the item will be drawn using the Color that was set for the whole gadget. To remove the custom color, set the 'Color' parameter to -1.

If the 'Row' parameter is set to -1, the color will be applied to all gadget items.

The following values are possible for the ColorType parameter:

#PB_Gadget_FrontColor : Item text

#PB_Gadget_BackColor : Item background

This function is supported by the following gadgets:

- ListIconGadget()

- EditorGadget()

- ComboboxGadget()


Example:


Remarks:



Supported OS:   Windows