Page 1 of 1

Opening Window on Specific Monitor?

Posted: Thu Jul 16, 2020 4:47 pm
by bluesfannoz
Is there a way to open a Window on a specific Monitor?

We are implementing an Activity Timeout in our application and I would like for a warning box to pop up on all monitors.

I can parse the env$ variables and determine what monitors there are. But can I create a window on a specific monitor?

Re: Opening Window on Specific Monitor?

Posted: Thu Jul 16, 2020 5:47 pm
by gordon
"To position a window on a second monitor, specify a starting position to the right of the last position of the first monitor."
http://brwiki2.brulescorp.com/index.php ... pen_Window

Use ENV$("MONITOR1", MAT <num-arrayname>) to interrogate the size of the first monitor.
http://brwiki2.brulescorp.com/index.php?title=Env$

Re: Opening Window on Specific Monitor?

Posted: Thu Jul 16, 2020 7:58 pm
by bluesfannoz
Interesting. Will have to do some testing. I am concerned what happens on a machine where 2nd monitor is to left rather than right if you will need to be negative as opposed to positive. Plus what do you do if they have 3 or 4 monitors?

Seems to me a better implementation would be to give the ability to specify a monitor to place a window upon.

Re: Opening Window on Specific Monitor?

Posted: Fri Jul 17, 2020 3:55 am
by gordon
I agree with your assessment. I will add your suggestion to the queue.