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

TControl.Color

The background color for the control.

Declaration

Source position: controls.pp line 1808

public property TControl.Color : TColor
  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.

Remark: For the macOS Carbon widgetset, setting Color to clBtnFace causes the background for the control to become transparent.

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.


Version 3.2 Generated 2024-02-25 Home