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

TWindowState

Represents the actual State of the window on the screen.

Declaration

Source position: forms.pp line 68

type TWindowState = (

  wsNormal,

  

Neither maximized nor minimized.

  wsMinimized,

  

The window is minimized and is not shown in the screen, but only in the taskbar.

  wsMaximized,

  

The window appears maximized. The exact behavior is up to the window manager, but usually the window appear occupying all of the work area of a monitor.

  wsFullScreen

  

The window appears in full screen mode, as much as allowed by the platform. It will, for example, attempt to appear on the top of taskbars and other static platform user interface elements.

);

Description

The actual meaning of each value depends on the platform:

Windows and Mac OS X - These operating systems support all values.

X11 - The window state is a hint sent to the Window Manager, so more primitive Window Managers might ignore this hints.

Windows CE - In Windows CE platforms where Application.ApplicationType = atKeyPadDevice or atPDA (like in Windows Phone, PocketPC and Windows Mobile), wsMinimized and wsNormal are understood as wsMaximized, which is the normal state for windows in this platform. An exception are windows with BorderStyle=bsDialog or bsNone, which are allowed to have a custom position and size. For more information please read http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#Positioning_and_size_of_Dialogs_and_Forms

Android - In this platform windows are always fullscreen.

The valid values for this enumerated type are:

wsNormal - The window appears normal

wsMinimized - The window is minimized and is not shown in the screen, but only in the taskbar

wsMaximized - The window appears maximized

wsFullScreen - The window appears in full screen mode, as much as allowed by the platform.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.