The Shell object represents a window-either a top-level window or a dialog window.
Shell Styles:
Style | Description |
BORDER | Adds a border. |
CLOSE | Adds a close button. |
MIN | Adds a minimize button. |
MAX | Adds a maximize button. |
NO_TRIM | Creates a Shell that has no border and can't be moved, closed, resized, minimized, or maximized. (Useful for splash screens). |
RESIZE | Adds a resizable border. |
TITLE | Adds a title bar. |
DIALOG_TRIM | Convenience style, equivalent to TITLE | CLOSE | BORDER. |
SHELL_TRIM | Convenience style, equivalent to CLOSE | TITLE | MIN | MAX | RESIZE. |
APPLICATION_MODAL | Creates a Shell that's modal to the application. Note that you should specify only one of APPLICATION_MODAL, PRIMARY_MODAL, SYSTEM_MODAL, or MODELESS; you can specify more, but only one is applied. The order of preference is SYSTEM_MODAL, APPLICATION_MODAL, PRIMARY_MODAL, then MODELESS. |
PRIMARY_MODAL | Creates a primary modal Shell. |
SYSTEM_MODAL | Creates a Shell that's modal system-wide. |
MODELESS | Creates a modeless Shell. |