The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



Transparent


Unit: SDL_htmllab
Class: THtmlLab
Declaration: property Transparent: boolean;

The property 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.

Hint 1: 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.

Hint 2: Please note that the frame of the label is never transparent. To switch off the frame, you have to set the FrameStyle property to fsNone.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): htmllabel



Last Update: 2023-Dec-13