Vcl.Forms.TForm.DefaultMonitor
Delphi
property DefaultMonitor: TDefaultMonitor read FDefaultMonitor write FDefaultMonitor stored IsForm default 3;
C++
__property DefaultMonitor = {default=3};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TForm |
Description
Specifies the monitor on which the form appears.
Vcl.Forms.TForm.DefaultMonitor inherits from Vcl.Forms.TCustomForm.DefaultMonitor. All content below this line refers to Vcl.Forms.TCustomForm.DefaultMonitor.
Specifies the monitor on which the form appears.
Use DefaultMonitor 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. |
Note: DefaultMonitor has no effect if the application does not have a main form.