MAINWIN columns rows

This sets the width or width and height of a program's main window.  This is specified in colums and rows of text according the font of the mainwindow.  This statement is usually placed at the beginning of the program code.

NOMAINWIN

This command instructs Just BASIC not to open a main window (the mainwin) for the program that includes this statement.  Some simple programs which do not use separate windows for graphics or text may use only the mainwin.  Other programs may not need the mainwin to do their thing. If the mainwin is not needed, including NOMAINWIN somewhere in the program source code prevents the window from opening.

If NOMAINWIN is used, when all other windows owned by that program are closed, the program ends automatically.




