ui.Interface.setSize

Specify the initial size of the window container.

Syntax

ui.Interface.setSize(
   h STRING,
   w STRING )
  1. h is the height of the window container.
  2. w is the width of the window container.
  3. Default unit is form cells, can accept graphical units like px, or % for screen ratio.

Usage

Call the ui.Interface.setSize() method at the beginning of the program, before displaying any window/form and before starting any interactive instruction.

When using traditional mode, the ui.Interface.setSize() method defines the initial size of the area containing the fixed windows created by OPEN WINDOW, as a replacement for the fgl_setsize() built-in function.

This method specifies the initial size of the window container: When stored settings apply, the size is taken from the stored settings.

The parameters can be INTEGER or STRING values. By default, the unit is the character grid cells, but you can add the px unit to specify the height and width in pixels. You can use the % sign as unit, to represent a ratio of the desktop screen.

Example

MAIN
    CALL ui.Interface.setSize(300,800)
    OPEN FORM f1 FROM "main_form"
    DISPLAY FORM f1
    ...
END MAIN