JVCL Help:ItemHtDrawEx

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

Search in JVCL Help

 
Search in all projects
 

Summary

Renders HTML that contains a link (or HTML Anchor).

run\JvHtControls.pas


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.

run\JvHtControls.pas


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.

run\JvHtControls.pas


See Also

ItemHTDraw

run\JvHtControls.pas


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