BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multiple monitors

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students
View previous topic :: View next topic  
Author Message
fic
Guest





PostPosted: Sat Apr 21, 2007 8:12 am    Post subject: Multiple monitors Reply with quote



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





PostPosted: Sat Apr 21, 2007 5:35 pm    Post subject: Re: Multiple monitors Reply with quote



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





PostPosted: Sun Apr 22, 2007 2:58 pm    Post subject: Re: Multiple monitors Reply with quote



"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





PostPosted: Wed Apr 25, 2007 5:54 am    Post subject: Re: Multiple monitors Reply with quote

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





PostPosted: Tue May 08, 2007 6:29 pm    Post subject: Re: Multiple monitors Reply with quote

Yes, and you should use the Screen.Monitors values to compute the Top/Left
positions.

-Atle
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Students All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.