sizeState

Usage

-- Lingo syntax
windowObjRef.sizeState

// JavaScript syntax
windowObjRef.sizeState;

Description

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.

Example

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();
}

See also

Window