WindowState

Applies to

Windows

Description

The WindowState property specifies how the window is first displayed. The state can be:

  • Maximized

    Enlarge the window to its maximum size.

  • Minimized

    Shrink the window to an icon.

  • Normal (Default)

    Display the window as it is defined in the painter.

Usage

In a painter

To set the window state:

  • Select the desired state from the WindowState drop-down list on the Position tab page of the window's Properties view.

In scripts

You cannot specify the initial state of the window before it has been opened. You can change its display state afterwards while the window is open.

The WindowState property takes a value of the WindowState enumerated datatype. The following line sets the Maximized state for the current window:

This.WindowState = Maximized!