JVCL Help:TJvMarkupLabel

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvMarkupLabel
run\JvMarkupLabel.pas


Summary

Implements an HTML-enabled Label component.

run\JvMarkupLabel.pas


Pascal

 run\JvMarkupLabel.pas
 TJvMarkupLabel = class(TJvPubGraphicControl);


Description

  1. JVCLInfo

TJvMarkupLabel is a TJvPubGraphicControl descendant that implements an HTML-enabled Label component. TJvMarkupLabel provides the ability to parse and render HTML markup assigned to the Text property for the control.
TJvMarkupLabel recognizes the following HTML tags in the Text property:

Tag Description

Break tag. Performs a newline or carriage return when rendering the HTML tag.
Bold tag. Renders using the Bold attribute for the current font.
Italic tag. Renders using the Italic attribute for the current font.
Underline tag. Renders using the Underline attribute for the current font.
Font tag. Allows defining the font used to render the values between the start and end tags. Use the face, size, and color attributes to specify the values to use for the font element.


The following attributes are recognized for HTML markup in the Text property:

Attribute Description
face Font name to use for the HTML element. Must match the name for a font installed on the computer.
size Font size for the HTML element. The unit measure for size is expressed in points (1/72 inch).
color Font color for the HTML element. Font may be expressed as a decimal value (using #nnnnnn) or a color name (Red, Green, Blue, Lime, Maroon, etc).


Attributes attached to an HTML element must be enclosed in double quote characters ("). For instance:
Title

TJvMarkupLabel uses internal instances of TJvHTMLElementStack during parsing and rendering of HTML tags assigned to the Text property. TJvMarkupLabel implements overridden methods to handle Font and Text assignments to properties in the control, and to perform painting and automatic resizing of the rendered control.
Use the MarginLeft, MarginRight, and MarginTop properties to control the spacing needed prior to the rendered HTML content for the control.

run\JvMarkupLabel.pas


See Also

TJvPubGraphicControl, TJvHTMLElementStack, TJvHTMLElement, TJvMarkupLabel.Text, , TJvMarkupLabel.MarginLeft, TJvMarkupLabel.MarginRight, TJvMarkupLabel.MarginTop

run\JvMarkupLabel.pas


About

Navigation

run\JvMarkupLabel.pas



Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page