Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TControl.Color

The background color of the control.

Declaration

Source position: controls.pp line 1733

public property TControl.Color : TGraphicsColor
  read FColor
  write SetColor
  stored ColorIsStored
  default clDefault;

Description

The default value in Color is the same as the value in the parent window Color. If the color is clDefault, the result will need to be passed through GetDefaultColor to resolve clDefault. Convenience routines which obtain the color by resolving clDefault and ParentColor are also provided as TControl.GetColorResolvingParent and TControl.GetRGBColorResolvingParent.

See also

TControl.ParentColor

  

Use the Color from the Parent control, when enabled.

TControl.GetDefaultColor

  

Gets the default 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.

TColor

  

Color type used by most LCL drawing functions.



CT Web help

CodeTyphon Studio