Vcl.DBCtrls.TDBText.Transparent
Delphi
property Transparent: Boolean read GetTransparent write SetTransparent stored FTransparentSet;
C++
__property Transparent;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBText |
Description
Specifies whether controls that sit below the label on a form can be seen through the label.
Vcl.DBCtrls.TDBText.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:
- Set Transparent to False, and
- Set the background color of the label to match the object beneath it.