GET-TEXT-WIDTH-PIXELS( ) method
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
(Graphical interfaces only)
Returns the width, in pixels, of the string using the specified font. If no font is specified, the method calculates the width of the string using the default font.
Return type: INTEGER
Applies to: FONT-TABLE system handle
Syntax
|
- string
- A character-string expression whose width you want to determine.
- font
- An integer expression that specifies an entry within the font table.
If
you pass the Unknown value (?) to this method, the AVM
uses the system default font. When a field-level widget inherits
its font from the parent frame, the AVM returns the Unknown value (?) for
the font and you must use the font of the parent frame.