Just going back to this.  I was reading the help on DefaultMonitor and it says...
"Note: DefaultMonitor has no effect if the application does not have a main form."
 
It is the main form that is loading on the wrong monitor, and therefore it does not itself have a main form, so in theory it will not have any impact on my problem.  or am I wrong?
 
Ross.
----- Original Message -----
Sent: Thursday, January 19, 2006 5:54 PM
Subject: RE: [DUG] Dual monitors

Yes, you need to set the form DefaultMonitor to dmDesktop and Position to poDesigned at design time, store the top and left, then restore on startup.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ross Levis
Sent: Thursday, 19 January 2006 3:50 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Dual monitors

 

Speaking of dual monitors, it's rather a coincidence that a use contacted me today asking why my app will not load up on his right-hand monitor.  The program stores the window position and size when it's closed.

 

If the user moves the window so it is seen on both monitors, then this works fine when reloaded.  But if he moves it 100% into the right-hand monitor then it reloads on the left monitor.

 

I can't test this here as I only have 1 monitor but is there something else I should be storing?

 

Thanks,

Ross.

 

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to