Ah, OK.  I notice Default Monitor was set to dmActiveForm.  Position is already poDesigned so the position can be restored to it's previous position.
 
Many thanks,
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