Vcl.Forms.TCustomForm.DefaultMonitor
Delphi
property DefaultMonitor: TDefaultMonitor read FDefaultMonitor write FDefaultMonitor
C++
__property TDefaultMonitor DefaultMonitor = {read=FDefaultMonitor, write=FDefaultMonitor, stored=IsForm, default=3};
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| property | protected | Vcl.Forms.pas Vcl.Forms.hpp | Vcl.Forms | TCustomForm | 
Description
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.