Progress
Portability Guide
SESSION Handle Attributes
Your application can convert pixels to character units and character units to pixels using the PIXELS-PER-ROW and PIXELS-PER-COLUMN attributes of the SESSION handle. For example, use this formula to determine at what pixel offset a certain row starts:
(ROW - 1) ¥ SESSION:PIXELS-PER-ROW
Each widget’s dimensions and position are readable in either character units or pixels. For example, the WIDTH-CHAR and WIDTH-PIXELS attributes both return the width of a widget.
You can also specify the FRAME-SPACING attribute to the SESSION handle. This integer value indicates the number of display units (pixels or character units) between frames. The default value is one row in height. In the following example on Windows, the space between frame X and frame Y is 2 pixels:
For more information on the SESSION handle and its attributes, see the Progress Language Reference.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |