[DUG] Dual monitors

David O'Brien dave at iccs.co.nz
Thu Jan 19 17:54:23 NZDT 2006


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: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] 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.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060119/fa90ae0c/attachment.html


More information about the Delphi mailing list