How do you force the form to either monitor 1 or 2?

I know there are two monitors in the system having tested at runtime.

I have my form maximised, and hidden, DefaultMonitor will be the same as
main form (monitor 0).

The Monitor property of the form is read only (tells you which monitor it is
on) so the only way seems to be to set the left of the form to appear on
whichever monitor.

I thought this would work:

//Go to monitor 0
        PlayerForm.Left := Screen.Monitors[0].Left;

//Go to monitor 1
        PlayerForm.Left := Screen.Monitors[1].Left;


Assuming that the monitor's left property is where on the desktop it
appears. Is it because it is already maximised that it refuses to move?
Maybe to minimise or restore it first before moving it?

Or am I totally on the wrong track?

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Ben Taylor
> Sent: Monday, 2 July 2001 17:33
> To: Multiple recipients of list delphi
> Subject: re: [DUG]: Multi Monitors
>
>
> Hi,
>
> it probably depends what setup they're running.
>
> i'm using a matrox g400 dual display, nt2k, with the matrox drivers and
> utils. with the options i have set, the form maximises to the screen
> its (mostly) contained in, but it can be forced to either display 1 or
> 2..
>
> the display itself appears as 2048x768, so anything with x>1024 is on
> the second display.
>
> hope that adds to the confusion :-)
>
> Ben.
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to