JVCL Help:TJvMarkupLabel.Paint

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

Search in JVCL Help

 
Search in all projects
 

Summary

Renders the HTML markup for the HTML-enabled control.


Pascal

 procedurePaint; override;


Description

Paint is an overridden method in TJvMarkupLabel that implements rendering of the HTML markup in Text for the HTML-enabled control.
Rendering uses the Canvas for the control to recalculate the position for HTML elements found in the Text property. HTML element positions are relative to the values specified in the MarginLeft, MarginRight, and MarginTop properties. The value in MarginBottom is also added to the overall total height of the rendered control.
Internally, Paint uses TJvHTMLElementStack and TJvHTMLElement to calculate the flow and alignment of the HTML elements in the client area of the control. This includes wrapping of HTML elements that cannot be draw in their entirety on the current line.
When Autosize contains True, the control will be resized horizontally when additional space is needed to render elements in the HTML markup. When Autosize contains False, the rendered content is drawn by wrapping rendered elements (when needed) and uses the value in the Alignment property.


See Also

TJvMarkupLabel.Text, TJvMarkupLabel.MarginLeft, TJvMarkupLabel.MarginRight, TJvMarkupLabel.MarginTop, , TJvMarkupLabel.Alignment, 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