Unit 'StdCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomLabel.Transparent

Indicates whether the viewer can see through the control.

Declaration

Source position: stdctrls.pp line 1602

protected property TCustomLabel.Transparent : Boolean
  read GetTransparent
  write SetTransparent
  default True;

Description

When Transparent is set to False, the enclosing rectangle for the control is filled with the background Color for the label. If Color contains clNone, then clBackground is used in the Color property.

When set to True, Color is changed to clNone and the background appears to be transparent (no opacity).

The default value for Transparent in the LCL is True, which differs from the default value in the Delphi VCL.

Values in Color, Transparent, and ParentColor are inter-dependent; changing the value in one property affects the values in the other properties. Use ParentColor to toggle values in Color and Transparent. Use Color to set an explicit background color for the control and toggle values in Transparent and ParentColor.

See also

TCustomLabel.Color

  

Sets the color used for the background of the control.

TControl.ParentColor

  

Use the Color from the Parent control, when enabled.