RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TForm.DefaultMonitor Property

Specifies the monitor on which the form appears.

Pascal
property DefaultMonitor: TDefaultMonitor;
C++
__property TDefaultMonitor DefaultMonitor;

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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!