Vcl.StdCtrls.TLabel.Transparent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Transparent;

C++

__property Transparent;

Properties

Type Visibility Source Unit Parent
property published
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TLabel

Description

Specifies whether controls that sit below the label on a form can be seen through the label.

Vcl.StdCtrls.TLabel.Transparent inherits from Vcl.StdCtrls.TCustomLabel.Transparent. All content below this line refers to Vcl.StdCtrls.TCustomLabel.Transparent.

Specifies whether controls that sit below the label on a form can be seen through the label.

Set Transparent to True to prevent the label from obscuring other controls on the form. For example, if the label is used to add text to a graphic, set Transparent to True so that the label does not stand out as a separate object.

When Transparent is True, the label always displays in the background color, and any Color setting is ignored. Also, when Transparent is True, writing text is slower than writing text when Transparent is False. If the label is not obscuring a complicated image, you might choose to optimize performance by doing both of the following things:

See Also