4D v16.3Window Types |
||||||||||||||||||||||||||||||||||||||
|
4D v16.3
Window Types
Window Types
You can use one of the following constants from the "Open Form Window" theme to specify the type of window that you open with Open form window:
This section shows each type of window under Windows (left) and macOS (right). A modal window places the user in a state (or “mode”) where they can only act within this window. As long as the modal window is displayed, the menu commands and other application windows are inaccessible. To close a modal window, the user must either validate it, cancel it, or choose one of the options it offers. Warning dialog boxes are a typical example of modal windows. Note: A modal window always stays in the foreground. As a consequence, when a modal window calls a non-modal window, this latter window is displayed in the background, even though it was called subsequent to the modal window. You should thus avoid this type of operation. On the other hand, when a modal window calls another modal window, this latter window will be displayed in the foreground.
This type of window features the following advanced specifics:
Sheet windows are specific to macOS. These windows “drop down” over the title bar of the main window using animation and are displayed above the main window. They are automatically centered in the main window. Their properties are comparable to those of the modal dialog boxes. They are generally used to perform an action directly relating to the action occurring in the primary window.
A toolbar form window is created with the location, size and graphical properties of a toolbar, i.e.:
Toolbar form windows and macOS full screen mode: If your application displays both a toolbar window and standard windows that support full screen mode (Form has full screen mode Mac option), interface rules require that you hide the toolbar when a standard window enters full screen mode. To know if a window has switched to full screen mode, just test whether its vertical size is exactly the same as the screen's height (see the HIDE TOOL BAR command). This type of window allows you to generate floating windows which can be defined as resizable or not. Only the following options are supported:
Note: With this type of window, the set of values (constant+option) must always be passed as a negative value. Make sure that you pass, for example, -(Palette window+6) and not (-Palette window+6). The "full screen" option is available beginning with 4D v14 under OS X for document type windows. When this option is used, a "Full screen" button is displayed in the top right corner of the window: When the user clicks on this icon, the window switches to full screen and 4D automatically hides the main tool bar. $win:=Open form window([Interface];"User_Choice";Plain form window+Form has full screen mode Mac) Note: Under Windows, this option has no effect.
See also
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||