This keyword has meaning only on graphical systems such as Windows. Normally, the initial size of an application's window is determined by the host. You can change this initial size with the WINDOW keyword. Value is the desired number of rows and columns, separated by a comma. The maximum permissible size is 655 rows by 655 columns.

For example, if you wanted your initial window to contain 10 rows and 70 columns, you would enter:


The WINDOW configuration option has several special values that it recognizes. If either the row or column is set to a negative number, then the initial window is minimized (turned into an icon). If either value is set to "999" or larger, then the initial window is maximized instead. Finally, if either value is zero, then the initial window size is determined by the host system (this is the default).

The application window size may never be bigger than the virtual screen size, nor may the window size be larger than what can be physically displayed on the user's screen(s). This physical limit will change depending on the resolution of the user's screen and the size of the font you are using. The ACUCOBOL-GT runtime system will automatically reduce the requested window size to meet these limits.

You may enter the SIZE and WINDOW options on the same line. For example, if you wanted your application to be able to use 30 lines by 80 columns, and you wanted to start with the window maximized (thus showing the entire virtual screen), you would enter:

SCREEN   SIZE=30,80   WINDOW=999,999
Note: The SIZE and WINDOW options set only the initial screen and window size. After the application begins, the user is free to change the window size with various system controls, and the application is free to change the screen size with the DISPLAY SCREEN SIZE verb.

The configuration variables SCRN_WINDOW_X and SCRN_WINDOW_Y are also supported for this option.