RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBoundLabel.Transparent Property

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

Pascal
property Transparent: Boolean;
C++
__property Boolean Transparent;

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. 

Writing text so that the background is transparent is slower than writing text when Transparent is false. If the label is not obscuring a complicated image, performance can be improved by setting the background color of the label to match the object beneath it and setting Transparent to false. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!