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


Unit: SDL_htmllab
Class: THtmlLab
Declaration: property Caption: string;

The Caption property contains the text to be displayed. It may (and will, in most cases) contain simple HTML code which controls the appearance of the text. See "using HtmlLab" for more details.

Example 1: Assigning "<B>H</B><sup>tml</sup><font color="#0000EE">Lab</font>" to the property Caption results in the following layout (assuming that the default font is Lucida Sans in black color):


Example 2: This property is used in the following example program (see for downloading the code): htmllabel

Last Update: 2012-Okt-20