Sign in Join
FPDoc Onlineexperiment

TDefaultMonitor enumeration

In unit Forms

The preferred monitor for showing a form.

Declaration

pascal
TDefaultMonitor = (dmDesktop,dmPrimary,dmMainForm,dmActiveForm)

Description

When a form is not assigned to a specific monitor, assume the following display context:

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 then use dmMainForm behavior

Values

dmDesktopPlace the form on the full desktop.
dmPrimaryPlace the form on the primary monitor.
dmMainFormPlace the form on the same monitor as the main form. If there is no such form then use the primary monitor.
dmActiveFormPlace the form on the same monitor as the currently active form. If there is no such form then use the primary monitor.

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