GetGadgetColor()

Syntax

Color = GetGadgetColor(#Gadget, ColorType)
Description
Returns the color specified by 'ColorType' from the given #Gadget. This command returns the color that was previously set by SetGadgetColor(). If no custom color is set for the #Gadget and ColorType, the command returns -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        (for CalendarGadget())
  #PB_Gadget_TitleBackColor : Background color in the title  (for CalendarGadget())
  #PB_Gadget_GrayTextColor  : Color for grayed out text      (for CalendarGadget())
This command is supported by the following gadgets: (See each gadget description for the supported ColorType values.)

- CalendarGadget()
- ContainerGadget()
- DateGadget()
- EditorGadget()
- ExplorerListGadget()
- ExplorerTreeGadget()
- HyperLinkGadget()
- ListViewGadget()
- ListIconGadget()
- MDIGadget()
- ProgressBarGadget()
- ScrollAreaGadget()
- SpinGadget()
- StringGadget()
- TextGadget()
- TreeGadget()

Supported OS

Windows, Linux

<- GetGadgetAttribute() - Gadget Index - GetGadgetData() ->