WINDOW-STATE attribute

The current visual state of a window in the window system.

Data type: INTEGER

Access: Readable/Writeable

Applies to: WINDOW widget

The possible values can be expressed as compiler constants. The following table lists these values.

Window state values
Compiler constant Value Description
WINDOW-MAXIMIZED 1 The window is maximized to fill the entire display.
WINDOW-MINIMIZED 2 The window is minimized (iconified).
WINDOW-NORMAL 3 The window is in the "restored" state. Initially, this refers to a state that is neither maximized nor minimized. However, setting WINDOW-STATE to WINDOW-NORMAL restores the window to its previous state, which may be the maximized, minimized, or neither.
WINDOW-DELAYED-MINIMIZE 4 The window is minimized (iconified) the next time a new window, dialog box, or alert box is displayed. This differs from setting WINDOW-STATE to WINDOW-MINIMIZED, which minimizes the window immediately.

You can change the state of a window programmatically by setting the WINDOW-STATE attribute. Note that you can change a window to its maximized state in Windows only.