[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, when allowed by the platform. It will, for example, attempt to appear on the top of task bars and other static platform user interface elements. wsFullScreen is converted to wsMaximized for use on the Windows platform; the API does not provide a full screen option.

);

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 these 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 the Lazarus Wiki article.
Android
In this platform windows are always fullscreen.

Version 3.2 Generated 2024-02-25 Home