Top Method Summary
Options Name Purpose
DECIMAL GetTextWidthChars (character) Returns the width of a text in character units of the default font
INTEGER GetTextWidthPixels (character) Returns the width of a text in pixels in the default font

Top Constructor Summary
Options Name Purpose
TextWidthHelper () Protected default constructor.


Method Detail
Top

DECIMAL GetTextWidthChars (character)

Purpose: Returns the width of a text in character units of the default font
Notes: FONT-TABLE:GET-TEXT-WIDTH-CHARS. When Consultingwerk/products.i
defines ABL-Agent, GetTextWidthPixels divided by
FormatHelper:PixelsPerColumn PixelsPerColumn - the number of characters

Parameters:
pcText CHARACTER
The text to measure
Returns DECIMAL
The width of the text in characters
Top

INTEGER GetTextWidthPixels (character)

Purpose: Returns the width of a text in pixels in the default font
Notes: FONT-TABLE:GET-TEXT-WIDTH-PIXELS. When Consultingwerk/products.i
defines ABL-Agent, the number of characters multiplied with
FormatHelper:PixelsPerColumn PixelsPerColumn

Parameters:
pcText CHARACTER
The text to measure
Returns INTEGER
The width of the text in pixels


Constructor Detail
Top

TextWidthHelper ()

Purpose: Protected default constructor.
Notes: There's no need to create instances of the helper classes



©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2026 08:16:58