|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....|
|Home GuiPack HtmlLab Using THtmlLab|
|See also: Caption, Properties and Methods of HtmlLab|
The THtmlLab component provides a simple solution to a common problem. If you want to display labels with subscripts, or different fonts or colors, THmtlLab may be the right component. The properties of the label text can be controlled by inserting simple HTML statements into the text. These statements form a small subset of the common HTML tags:
By default, the color of the text, its size, and the font is controlled by the property Font. Further, the properties ColorBkg and Transparent control the background color and the transparency of the label. The FrameStyle property determines the frame around the label.
The HTML code is checked for validity during parsing the Caption text. In the case of an invalid HTML code, an exception is generated. However, the exceptions can be suppressed by setting the property SuppressExceptions to TRUE.