Sign in Join
FPDoc Onlineexperiment

TScreen.PrimaryMonitor property

Member of TScreenpublicIn unit Forms

The primary monitor which typically includes the task bar area.

Declaration

pascal
property PrimaryMonitor: TMonitor read GetPrimaryMonitor;

Description

PrimaryMonitor is a read-only TMonitor property with the primary monitor for the system. The property value is determined by checking for the TMonitor instance in Monitors with its Primary property set to True. The property value is Nil if a monitor is not found with its Primary property set to True.

The property value is used in the MoveToDefaultPosition method in TCustomForm. It is also used in widgetset classes to select the monitor for a dialog when the main form for an application has not been assigned.

See also

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