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


#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 -1.


This function is supported by the following gadgets: (See each gadget description for the supported ColorType values.)

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

See Also

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