954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

More than 1 Monitor

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.

quaifp1
Newbie Poster
10 posts since Oct 2009
Reputation Points: 11
Solved Threads: 3
 

"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)

BitFarmer
Junior Poster in Training
51 posts since Nov 2009
Reputation Points: 12
Solved Threads: 5
 

Thanks but I already looked at monitors but monitornum is read only

"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)

quaifp1
Newbie Poster
10 posts since Oct 2009
Reputation Points: 11
Solved Threads: 3
 

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

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!).

BitFarmer
Junior Poster in Training
51 posts since Nov 2009
Reputation Points: 12
Solved Threads: 5
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You