


You create a floating window with the DISPLAY FLOATING WINDOW statement. This statement constructs the specified window and returns a handle to it. A window created with the above statement is modal by default (the MODAL phrase can be added as commentary). To create a modeless window, you can add the MODELESS phrase. Note that managing multiple modeless windows is greatly simplified by associating a separate thread with each modeless window. See section 6.7, Book 1, "User's Guide."
The program's initial window, or main application window, is created either automatically, via the runtime, or programmatically via the DISPLAY INITIAL WINDOW statement. If the first DISPLAY statement is not a DISPLAY INITIAL WINDOW (or DISPLAY STANDARD WINDOW statement), the runtime automatically creates the initial window. The main application window is always a modeless window.
Because floating windows can be moved and, optionally, resized, their position and size are dynamic. To retrieve the current position and size of a floating window, you use the INQUIRE verb. INQUIRE returns information for the current window or the window identified by the specified handle.
To programmatically reposition or change the size or title of a window, you use the MODIFY verb. The MODIFY statement applies the specified values to the window identified by the handle or, if omitted, the current floating window.
Windows have a property called "ACTION" that can be used in DISPLAY and MODIFY statements. The ACTION property allows you to programmatically maximize, minimize, or restore a window. To use ACTION, assign it one of the following values (these names are found in "acugui.def"):
ACTION-MAXIMIZE - Maximizes the window. It has the same effect as if the user clicked the "maximize" button. Allowed only for windows that have RESIZABLE or AUTO-RESIZE specified or implied for them.
ACTION-MINIMIZE - Minimizes the window. It has the same effect as if the user clicked the "minimize" button. Allowed only for windows that have RESIZABLE or AUTO-RESIZE specified or implied for them.
ACTION-RESTORE - If the window is currently maximized or minimized, restores the window to its previous size and position; otherwise, it has no effect. Allowed only for windows that can be maximized or minimized.
For a complete description of each of the above verbs, see section 6.6, Book 3, "Reference Manual." For detailed information regarding creating and managing floating windows via the Screen Section, see section 5.9, Book 3, "Reference Manual."