Older Version Newer Version

Alyce Alyce Jan 17, 2006

Window Types

This section was taken directly from To learn more about the types of Windows that can be created , look in the Liberty BASIC Helpfile. Helpfile under GUI Programming -> Window Types.

Window Four Types
Windows of type "window" are the most used and useful windows used by Liberty BASIC programmers. They can contain any of the controls. They can have a sizing frame, or omit it. They can have a titlebar, or they can appear with no titlebar. They can include a menu, but they do not have to have a menu. It is also possible for the user to hit the TAB key to move focus from one control to the next in a window of type "window."
Graphics Windows of type "graphics" are especially suited to displaying graphics and graphical sprites. They are not intended to contain controls, and some controls do not work properly when placed in a graphics window. A sizing frame and scrollbars are optional in a graphics window. Dialog Styles
Windows of type "dialog" Not all styles are similar to windows of type "window" in that they can contain available with all of window types -- see the other controls except menus. Menus cannot be placed on a dialog window. Dialog windows allow the user to hit the TAB key to move focus from one control to the next. A dialog can have a default button that is activated when the user hits the ENTER key. For this reason, texteditors do not work well in dialog windows, because hitting ENTER is trapped by the window and the user cannot add a carriage return to text in a texteditor. Dialog windows are best suited helpfile for getting information from a user, although it is possible to have applications that are dialog-based. Dialog windows may display as "modal." This means that they receive the input focus for the program until they are closed. Other program windows cannot be accessed by a user while a modal dialog is displayed. particulars.
Text Windows of type "text" are quite limited in their functionality. They are not meant to contain other controls. They are useful for displaying text to a user, or for allowing a user to write and edit text. Text windows always have a menubar that contains a ready-made File Menu and a ready-made Edit Menu.