JVCL Help:ItemHtDrawEx
JVCL Help: ItemHTDrawEx procedure
Search in JVCL Help
Search in all projectsSummary
Renders HTML that contains a link (or HTML Anchor).
Pascal
run\JvHtControls.pas
procedureItemHTDrawEx(Canvas: TCanvas; Rect: TRect; constState: TOwnerDrawState; constText: string; varWidth: Integer; CalcType: TJvHTMLCalcType; MouseX: Integer; MouseY: Integer; varMouseOnLink: Boolean; varLinkName: string; Scale: Integer = 100);
Parameters
Parameters | Description |
Canvas: TCanvas | Canvas used to render the HTML content. |
Rect: TRect | Rectangle to use for rendering HTML content. |
const State: TOwnerDrawState | Draw state values for the rendering operation. |
const Text: string | HTML tags to render. |
var Width: Integer | Width of the rendered values. |
CalcType: TJvHTMLCalcType | Type of HTML size calculation. |
MouseX: Integer | Mouse position. |
MouseY: Integer | Mouse position. |
var MouseOnLink: Boolean | Mouse is currently in the HTML Anchor. |
var LinkName: string | URL for the HTML Anchor. |
Scale: Integer = 100 | Scaling factor for the render. Default value is 100. |
Description
ItemHTDrawEx is a procedure used to render HTML-tagged values that include links (HTML Anchors) using a TCanvas drawing area. Parameters for the procedure provide the drawing canvas, clipping rectangle, mouse position, and state information needed to draw the specified HTML-tagged values.
Width indicates the calculated width for the render HTML values in Text.
MouseX and MouseY represent the coordinates for the mouse pointer. The value in MouseOnLink is updated to indicate if the MouseX and MouseY coordinates are currently in an HTML anchor in the rendered values. LinkName is updated to indicate the URL for the HTML Anchor.
Scale indicates the scaling (or zoom) factor for the rendered values. The default value is 100. Use scale to control rendering of relative fonts sizes.
ItemHTDrawEx calls the HTMLDrawTextEx procedure to perform the low-level operations required for the procedure.
Use ItemHTDraw to render HTML-tagged values that do not include links (HTML Anchors) or mouse position information.
See Also
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