JVCL Help:ItemHtWidth

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-tagged contents using the specified Canvas, Rectangle, and Scaling factor.

run\JvHtControls.pas


Pascal

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


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


Return Value

Integer - Width of the rendered HTML tag.

run\JvHtControls.pas


Description

ItemHTWidth is a function used to render the HTML-tagged contents using the specified in Text using the Canvas, Rectangle, State, and Scaling factor arguments. The return value is an Integer that indicates the width of the rendered Text.
ItemHTWidth is used when rendering or auto-sizing the content in HTML-enabled controls like TJvHTLabel to determine the width of the rendered value.
Use ItemHTHeight to determine the render height of HTML-tagged values.
ItemHTWidth calls the HTMLTextWidth in JvJVCLUtils.pas.

run\JvHtControls.pas


See Also

HTMLTextWidth

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