GetGadgetItemColor()

Syntax

Color = GetGadgetItemColor(#Gadget, Item, ColorType [, Column])
Description
Returns the color specified by 'ColorType' from the given #Gadget item. This command returns the color that was previously set by SetGadgetItemColor(). If no custom color is set for the #Gadget item and ColorType, the command returns -1.

The following values are possible for the ColorType parameter:
  #PB_Gadget_FrontColor: Item text
  #PB_Gadget_BackColor : Item background
This command is supported by the following gadgets:

- ListIconGadget()
- TreeGadget()

Supported OS

Windows, Linux

<- GetGadgetItemAttribute() - Gadget Index - GetGadgetItemData() ->