Sign in Join
FPDoc Onlineexperiment

TControl.Color property

Member of TControlpublicIn unit Controls

The background color for the control.

Declaration

pascal
property 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.

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.