JVCL Help:TJvMarkupViewer
JVCL Help: TJvMarkupViewer Class
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvMarkupViewer
run\JvMarkupViewer.pas
Summary
Implements a scrollable HTML-enabled viewer component.
Pascal
run\JvMarkupViewer.pas
TJvMarkupViewer = class(TJvCustomControl);
Description
- JVCLInfo
TJvMarkupViewer is a TJvCustomControl descendant that implements a scrollable HTML-enabled viewer component.
TJvMarkupViewer provides the ability to parse and render HTML markup assigned to the Text property for the control. TJvMarkupViewer uses a TBitmap instance to render the contents of the HTML markup in the Text property, and to allow scrolling of the rendered content in the visible bounds of the component.
TJvMarkupViewer 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
TJvMarkupViewer uses internal instances of TJvHTMLElementStack during parsing and rendering of HTML tags assigned to the Text property. TJvMarkupViewer implements overridden methods to handle Font and Text assignments to properties in the control, and to perform painting 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.
Use TJvMarkupLabel to render HTML markup in a Label component.
See Also
TJvCustomControl, TJvMarkupLabel, TJvHTMLElementStack, TJvHTMLElement
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