[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TCustomForm.WindowState

Indicates whether the form is displayed in a minimized, maximized, full-screen or normal state.

## Declaration

Source position: forms.pp line 824

`public property TCustomForm.WindowState : TWindowState read FWindowState write SetWindowState default wsNormal;`

## Description

WindowState is a TWindowState property which indicates whether the form is currently displayed minimized, maximized, full-screen or normal (restored) state. The default value is wsNormal (i. e. neither minimized nor maximized).

Changing the value for the property at run-time causes the ShowWindow routine to be called with the Integer display command representing the new property value. The action is not performed at design-time, or when Showing is set to False.

Remark: | For the Windows platform, wsFullScreen is converted to wsMaximized when calling the ShowWindow API function; the Windows API does not provide a full-screen option.

## See also

TCustomForm.Show |  | Displays the form instance with support for High DPI scaling.
TWindowState |  | Represents the actual State of the window on the screen.
TWinControl.Showing |  | Cached visibility for the widget. Not necessarily in sync with the widget.
ShowWindow |  | Shows a window in an specific state.