[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 1555

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

  

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

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads