Opening Window on Specific Monitor?

More advanced topics discussed.

Moderators: Susan Smith, admin, Gabriel

bluesfannoz
Posts: 274
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Opening Window on Specific Monitor?

Postby bluesfannoz » Thu Jul 16, 2020 4:47 pm

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?
Steve Koger
Computer Specialist
SEKESC-MACS Division

gordon
Posts: 337
Joined: Fri Apr 24, 2009 6:02 pm

Re: Opening Window on Specific Monitor?

Postby gordon » Thu Jul 16, 2020 5:47 pm

"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?title=Open_Window

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

bluesfannoz
Posts: 274
Joined: Fri Jun 19, 2009 9:01 am
Location: Topeka, Kansas
Contact:

Re: Opening Window on Specific Monitor?

Postby bluesfannoz » Thu Jul 16, 2020 7:58 pm

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.
Steve Koger

Computer Specialist

SEKESC-MACS Division

gordon
Posts: 337
Joined: Fri Apr 24, 2009 6:02 pm

Re: Opening Window on Specific Monitor?

Postby gordon » Fri Jul 17, 2020 3:55 am

I agree with your assessment. I will add your suggestion to the queue.


Return to “Advanced Concepts”

Who is online

Users browsing this forum: No registered users and 3 guests

cron