JVCL Help:ItemHtDraw

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

Search in JVCL Help

 
Search in all projects
 

Summary

Write here a summary (1 line)

run\JvHtControls.pas


Pascal

 run\JvHtControls.pas
 functionItemHTDraw(Canvas: TCanvas; Rect: TRect; constState: TOwnerDrawState; constText: string; Scale: Integer = 100): string;


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.
Scale: Integer = 100 Scaling factor for the render. Default value is 100.

run\JvHtControls.pas


Description

ItemHTDraw is a procedure used to render HTML-tagged values using a TCanvas drawing area. Parameters for the procedure pro ide the drawing canvas, clipping rectangle, and state information needed to draw the specified HTML-tagged values.
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.
ItemHTDraw calls the HTMLDrawText procedure to perform the low-level operations required for the procedure.
Use ItemHTDrawEx to render HTML-tagged values that include links (HTML Anchors) and mouse position information.

run\JvHtControls.pas


See Also

ItemHTDrawEx

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