[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TStatusBar.Color

The background color of the control.

Declaration

Source position: comctrls.pp line 184

published property TStatusBar.Color : TColor
  default clDefault;

Description

Color is a published TColor property in TStatusBar. The default value for the property is clDefault or clBtnFace (depending on the UseCLDefault compiler define). If the color is clDefault, the result will need to be passed through GetDefaultColor to resolve clDefault to an actual TColor value.

Convenience routines which obtain the color by resolving clDefault and ParentColor are provided in the GetColorResolvingParent and GetRGBColorResolvingParent methods in the TControl ancestor.

Remark: For the macOS Carbon widgetset, the Color property is not supported in TStatusBar. The status bar is always transparent on the platform.

See also

TControl.Color

  

The background color for the control.

TControl.GetColorResolvingParent

  

Returns the color of the control while resolving clDefault and ParentColor.

TControl.GetRGBColorResolvingParent

  

Returns a RGB value for the color used on the control.