GetGadgetColor()

Syntax

Color = GetGadgetColor(#Gadget, ColorType)
Description
Returns a color setting from the specified gadget.

Parameters

#Gadget The gadget to use.
ColorType The setting to get. This can be one of the following values:
  #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())

Return value

Returns the current color setting. This function returns the color that was previously set by SetGadgetColor(). If no custom color is set for the #Gadget and ColorType, the function returns #PB_Default.

Remarks

This function 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()

Note: With activated Windows XP style the color will probably be overwritten by the style.

See Also

SetGadgetColor(), GetGadgetItemColor(), SetGadgetItemColor()

Supported OS

All

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