PreviousNextIndex

GET-TEXT-WIDTH-PIXELS( ) method


(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
GET-TEXT-WIDTH-PIXELS ( string [ , font ] ) 

string
font

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.


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex