 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
fic Guest
|
Posted: Sat Apr 21, 2007 8:12 am Post subject: Multiple monitors |
|
|
Hi all,
I got two monitors attached to my stystem, and now I was wondering how I can
create/open a form on the second monitor?
I've been playing around with Screen.Monitors, but that doesn't seem to do
the trick.
I'm using Delphi 7 on a winXP-system.
Any help would be much appreciated,
Regards,
filip. |
|
| Back to top |
|
 |
Marc Rohloff [TeamB] Guest
|
Posted: Sat Apr 21, 2007 5:35 pm Post subject: Re: Multiple monitors |
|
|
On Sat, 21 Apr 2007 10:03:11 +0200, fic wrote:
| Quote: | I got two monitors attached to my stystem, and now I was wondering how I can
create/open a form on the second monitor?
I've been playing around with Screen.Monitors, but that doesn't seem to do
the trick.
I'm using Delphi 7 on a winXP-system.
Any help would be much appreciated,
|
Have you tried setting the form's Monitor property?
--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com |
|
| Back to top |
|
 |
fic Guest
|
Posted: Sun Apr 22, 2007 2:58 pm Post subject: Re: Multiple monitors |
|
|
"Marc Rohloff [TeamB]" <"on request"> schreef in bericht
news:14f7hll2e9zp2.dlg (AT) dlg (DOT) marcrohloff.com...
| Quote: | On Sat, 21 Apr 2007 10:03:11 +0200, fic wrote:
I got two monitors attached to my stystem, and now I was wondering how I
can
create/open a form on the second monitor?
I've been playing around with Screen.Monitors, but that doesn't seem to
do
the trick.
I'm using Delphi 7 on a winXP-system.
Any help would be much appreciated,
Have you tried setting the form's Monitor property?
|
Yes, indeed I have.
All I got was a compiler-error : cannot assign to a read-only property.
This is what I did :
a := TForm.Create(self); //just a small standard form
a.Monitor := Screens.Monitor[1]; --> error
a.ShowModal;
a.Free; |
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Wed Apr 25, 2007 5:54 am Post subject: Re: Multiple monitors |
|
|
fic wrote:
| Quote: | I got two monitors attached to my stystem, and now I was wondering
how I can create/open a form on the second monitor?
|
Usually this is simply a matter of setting the left and top property of
the form. If your primary monitor is on the left and has a horizontal
resolution of 1280, set the left property of the form to something like
1380 to get it to show up on the right monitor.
--
-Mike (TeamB) |
|
| Back to top |
|
 |
Atle Smelvær Guest
|
Posted: Tue May 08, 2007 6:29 pm Post subject: Re: Multiple monitors |
|
|
Yes, and you should use the Screen.Monitors values to compute the Top/Left
positions.
-Atle |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|