-- Lingo syntaxwindowObjRef.sizeState // JavaScript syntaxwindowObjRef.sizeState;
Window property; returns the size state of a window. Read-only.
The returned size state will be one of the following values:
| Size state | Description |
|---|---|
#minimized |
Specifies that the window is currently minimized. |
#maximized |
Specifies that the window is currently maximized. |
#normal |
Specifies that the window is currently neither minimized nor maximized. |
These statements maximize the window named Artists if it is not already maximized.
-- Lingo syntax
if (window("Artists").sizeState <> #maximized) then
window("Artists").maximize()
end if
// JavaScript syntax
if (window("Artists").sizeState != symbol("maximized")) {
window("Artists").maximize();
}