Sign in Join
FPDoc Onlineexperiment

TScreen.Width property

Member of TScreenpublicIn unit Forms

The width of the primary monitor.

Declaration

pascal
property Width: Integer read GetWidth;

Description

Width is a read-only Integer property with the width for the primary monitor. The property value is the result from GetSystemMetrics using the SM_CXSCREEN parameter.

Use Height to get height for the primary monitor.

Use DesktopWidth to get the usable width for the entire desktop.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.