Sign in Join
FPDoc Onlineexperiment

TLabel.Color property

Member of TLabelpublishedIn unit StdCtrls

Contains the color used for the background on the control.

Declaration

pascal
property Color:;

Description

Color is TColor property with the background color for the control.

Setting a new value for the property causes the value in ParentColor to be set to False. A CM_COLORCHANGED control message is performed, and the control is redrawn.

Values in Color and Font are used when the background and text for the control are drawn in the Paint method. Color is used when Transparent is set to False and the color value is not clNone. Use the Font property to assign the typeface and color used for the text displayed on the control.

By default, label controls are transparent in the LCL. This differs from the Delphi VCL where the default value for Transparent is False.

Set Transparent to False to make the label opaque.

This description is the one of StdCtrls.TCustomLabel.Color.

See also

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