JVCL Help:TJvCustomHTLabel
JVCL Help: TJvCustomHTLabel Class
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvCustomHTLabel
TJvHTLabel
run\JvHtControls.pas
Summary
Specifies the interface for an HTML-enabled label control.
Pascal
run\JvHtControls.pas
TJvCustomHTLabel = class(TJvExCustomLabel);
Description
TJvCustomHTLabel is a TJvExCustomLabel descendant that specifies the interface for an HTML-enabled label component. TJvCustomHTLabel adds the capability to render HTML tags in the caption for the component and to trigger events when an HTML anchor is clicked.
TJvCustomHTLabel overrides methods in the ancestor class to provide sizing of HTML content based on changes in font size.
TJvCustomHTLabel recognizes the following HTML tags and attributes:
Tags |
<A></A> |
Attribute | Usage |
HREF | Valid URL for anchor tags. |
ALIGN | "CENTER" or "RIGHT" ("LEFT" is the default) |
COLOR | String representation of TColor values. |
BGCOLOR | "clRED", "clGREEN", "clBLUE", etc. |
SIZE | Font size in points (1/72 inch). |
IND | Indent in pixels. |
HTML Character entities are recognized in the content for the control. The following character entities are rendered as the indicated characters or symbols:
Entity | Character or Symbol |
< | < (Less-than character) |
> | > (Greater-than character) |
& | & (Ampersand character) |
" | " (Double Quote character) |
® | ® (Registered symbol) |
© | © (Copyright symbol) |
™ | ™ (Trademark symbol) |
€ | € (Euro symbol) |
(Non-breaking space character) |
Use the OnHyperLinkClick event handler to respond to mouse clicks on Anchor tags found in the content for the control.
Use the ColorHighlight, ColorHighlightText, and ColorDisabledText properties to set the TColor values applied to the control when selected or disabled.
See Also
TJvCustomHTLabel.OnHyperLinkClick, TJvHTLabel
About
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