Sign in Join
FPDoc Onlineexperiment

TMonitor class

In unit Forms

Provides information about a physical monitor.

Declaration

pascal
TMonitor = class(TObject)

Inheritance

  1. TMonitor
  2. TObject

Description

Monitor information is retrieved dynamically from the Operating System. This ensures that any changes to the installed hardware devices or their configuration are taken into account. TMonitor has properties that reflect its dimensions, use as the primary monitor, and its display density (or Pixels per Inch).

TMonitor is the type returned when reading the TScreen.Monitors property. TMonitor is the type used to implement the TCustomForm.Monitor property.

See also

Properties

HandlepublicHandle which identifies this monitor to the system.
MonitorNumpublicIndex of the monitor in the list.
LeftpublicThe left-most screen coordinate for the display.
HeightpublicThe height for the display.
ToppublicThe top-most screen coordinate for the display.
WidthpublicThe width for the display.
BoundsRectpublicRectangle with the dimensions for the monitor.
WorkareaRectpublicThe usable display area on the monitor excluding the system task bar.
PrimarypublicContains True if this is the primary monitor for the system.
PixelsPerInchpublicContains the Pixels Per Inch (or display density) for the monitor.

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