More than 1 Monitor

Thread Solved

Join Date: Oct 2009
Posts: 10
Reputation: quaifp1 is an unknown quantity at this point 
Solved Threads: 3
quaifp1 quaifp1 is offline Offline
Newbie Poster

More than 1 Monitor

 
0
  #1
Nov 12th, 2009
Hi,

I have usually have 2 monitors available but not always.

I use one for displaying maps and the other for the data on a called form.
How do 1 get Maps on 1 and Data to appear on the other without dragging the form onto the second monitor.

Thanx

P.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 41
Reputation: BitFarmer is an unknown quantity at this point 
Solved Threads: 5
BitFarmer BitFarmer is offline Offline
Light Poster
 
0
  #2
Nov 13th, 2009
"Screen.Monitors" has a list of installed monitors, and Forms have the "monitor" property where you could try to fix where you want it to appear in the FormCreate event... have you tried this (i don't have 2 monitor here to give it a try)?

(All this info just typing "monitor" on the delphi help)
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 10
Reputation: quaifp1 is an unknown quantity at this point 
Solved Threads: 3
quaifp1 quaifp1 is offline Offline
Newbie Poster

Tried that

 
0
  #3
Nov 13th, 2009
Thanks but I already looked at monitors but monitornum is read only



Originally Posted by BitFarmer View Post
"Screen.Monitors" has a list of installed monitors, and Forms have the "monitor" property where you could try to fix where you want it to appear in the FormCreate event... have you tried this (i don't have 2 monitor here to give it a try)?

(All this info just typing "monitor" on the delphi help)
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 41
Reputation: BitFarmer is an unknown quantity at this point 
Solved Threads: 5
BitFarmer BitFarmer is offline Offline
Light Poster
 
0
  #4
Nov 16th, 2009
Each TMonitor has its own left and top intial position: if your second monitor is on the left side and main monitor is 1600 width, its left property can be like 1601 (and top = 0 in that case), so on Form.FormCreate you can read this and make
Pascal and Delphi Syntax (Toggle Plain Text)
  1. Self.Left:= Screen.Monitors[1].Left;
(for instance), so placing your form depending on monitor top, left, height and width should make it appear on center of the secondary monitor (again, not tested!).
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum


Views: 1140 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC