Sign in Join
FPDoc Onlineexperiment

TCustomForm.DefaultMonitor property

Member of TCustomFormpublicIn unit Forms

The monitor on which the form is displayed.

Declaration

pascal
property DefaultMonitor: TDefaultMonitor read FDefaultMonitor write FDefaultMonitor default dmActiveForm;

Description

Possible values:

dmDesktop
No attempt to choose specific monitor.
dmPrimary
On the primary monitor.
dmMainForm
On the same monitor as the main form. If there is no main form then use dmPrimary behavior.
dmActiveForm
On the same monitor as the currently active form. If there is no active form use dmMainForm behavior.

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