[DUG] Dual monitors

Ross Levis ross at stationplaylist.com
Thu Jan 19 18:49:52 NZDT 2006


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 ----- 
  From: David O'Brien 
  To: 'NZ Borland Developers Group - Delphi List' 
  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: 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/5afc125c/attachment.html


More information about the Delphi mailing list