ui.Interface.setSize
Specify the initial size of the parent container window.
Syntax
ui.Interface.setSize(
h INTEGER,
w INTEGER )
- h is the initial height of the main window.
- w is the initial width of the main window.
Usage
Use the ui.Interface.setSize()
class method to define the initial size of the
parent container window of a window container application. 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.
The setSize()
method can also be used to configure the size of the main window
when using traditional mode, as a replacement for the
fgl_setsize()
built-in
function.
Call the method at the beginning of the program, before any interactive instruction.