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

TCustomLabel.Color

Sets the color used for the background in the control.

Declaration

Source position: stdctrls.pp line 1615

public property TCustomLabel.Color : TColor
  default clNone;

Description

The default value for the property is clNone in TCustomLabel. This value is used because labels, by default, are transparent in the LCL. Please note that this differs from the Delphi VCL where the default value for Transparent is False.

Set Transparent to False to fill the control background with a given TColor value. Set ParentColor to True to use the Color defined for the parent control or form.

See also

TControl.Color

  

The background color of the control.

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