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

TControl.Color

The background color of the control.

Declaration

Source position: controls.pp line 1653

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

Description

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

See also

TControl.ParentColor

  

If true, the Color of the control will be the same as the one from the Parent. Default is true.

#lcl.Graphics.TColor

  

A color type used by most LCL drawing functions

TControl.GetDefaultColor

  

Get the default color for this widget, from Parent or color type.

TControl.GetColorResolvingParent

  

Returns the color of the control while resolving clDefault and ParentColor

TControl.GetRGBColorResolvingParent

  

Returns a RGB value for the color of the control

The latest version of this document can be found at lazarus-ccr.sourceforge.net.