Sign in Join
FPDoc Onlineexperiment

TForm.WindowState property

Member of TFormpublishedIn unit Forms

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

Declaration

pascal
property WindowState:;

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.

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.

This description is the one of Forms.TCustomForm.WindowState.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.