Vcl.Forms.TDefaultMonitor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

enum DECLSPEC_DENUM TDefaultMonitor : unsigned char { dmDesktop, dmPrimary, dmMainForm, dmActiveForm };

Properties

Type Visibility Source Unit Parent
enum public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms Vcl.Forms

Description

Specifies the monitor on which the form appears.

Use TDefaultMonitor to associate a form with a particular monitor in a multi-monitor application. The following table lists the possible values:


Value Meaning

dmDesktop

No attempt is made to position the form on a specific monitor.

dmPrimary

The form is positioned on the first monitor listed in the global screen object’s Monitors property.

dmMainForm

The form appears on the same monitor as the application’s main form.

dmActiveForm

The form appears on the same monitor as the currently active form.