$cellinfo

Get an associative list with the dimensions of a character cell in pixels.

$cellinfo {(InstanceName) }

Return Values

Returns an associative list with the width (xsize) and height (ysize) in pixels of a character cell as displayed on the screen. The dimensions are determined by the font0 setting in [SCREEN] section of usys.ini.

xsize=Pixels;ysize=Pixels

An empty string is returned when the function is used in batch mode or in a non-interactive Windows environment.

Use

Use in Form components.

Description

$cellinfo returns the dimensions of single cell as determined by the following settings in usys.ini:

  • font0 in the [screen] section
  • CELLHEIGHT and LINESPACE in the [upi] section. CELLHEIGHT specifies the cell height (as a percentage of the cell height of Font 0) used to draw widgets. LINESPACE specifies additional spacing between text lines in the background.

These dimensions can be used as input for $windowproperties to adjust the size of the window.

History
VersionChange
9.4.01Introduced

Related Topics