Page 1 of 1

Position window multiple monitors?

Posted: Fri Feb 05, 2010 10:46 pm
by Kevin
I am attempting (unsuccessfully I might add) to position a syslog type palette stackin the lower right corner of the current monitor? The code I wrote sometime ago only seems to position on the "default" monitor. Any suggestions/help would be greatly appreciated.

Kevin

Re: Position window multiple monitors?

Posted: Fri Feb 05, 2010 10:52 pm
by bn
Kevin,
from the dictionary:
In its singular form (screenRect) this function returns the virtual co-ordinates of the primary display.

In its plural form (screenRects) this function returns a list containing the virtual co-ordinates of all the screens currently attached to the system. The first line is always that of the primary display, and the order of the rest are in an OS-specific order.
depending on what monitor you want to display it you have to parse the lines of the screenrects function if the screenrect function does not return the intended monitor.
Can not test it since I only have one monitor
regards
Bernd

Re: Position window multiple monitors?

Posted: Sat Feb 06, 2010 5:06 pm
by Kevin
The problem is knowing which monitor you are currently displayed on. I used screenRects, screenLoc and etc but the function is quite complicated (and not working multi-platform) as there is a oddly different behavior on 2 of my Linux systems. It seem like I asked the wrong question :)). Is there a manner (multi-platform) by which to determine the monitor your "Main Stack" is on?

P.S. Sorry about asking the wrong question "got the tunnel vision".

Thanks again,
Kevin

Re: Position window multiple monitors?

Posted: Sat Feb 06, 2010 7:20 pm
by Kevin
Also I found in my testing the screenRects failed to give the proper location when the application is being used inside a "Remote" secession (RDP,VNC,X-Window --display). Has anyone else found the same.

Re: Position window multiple monitors?

Posted: Fri Apr 09, 2021 5:26 pm
by andresdt

Re: Position window multiple monitors?

Posted: Fri Apr 09, 2021 6:06 pm
by Klaus
Hi andres,

I am sure that Kevin, after moree than eleven years, has found a workaround. :D


Best

Klaus

Re: Position window multiple monitors?

Posted: Fri Apr 09, 2021 6:53 pm
by andresdt
I hope so :D :D :D

Only in case someone goes through this thread looking for a solution, they can find it.