Position window multiple monitors?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Position window multiple monitors?
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
Kevin
-
- VIP Livecode Opensource Backer
- Posts: 4003
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Position window multiple monitors?
Kevin,
from the dictionary:
Can not test it since I only have one monitor
regards
Bernd
from the dictionary:
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.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.
Can not test it since I only have one monitor
regards
Bernd
Re: Position window multiple monitors?
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
P.S. Sorry about asking the wrong question "got the tunnel vision".
Thanks again,
Kevin
Re: Position window multiple monitors?
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?
Maybe this post can help viewtopic.php?f=7&t=23629&p=204278#p123294
Re: Position window multiple monitors?
Hi andres,
I am sure that Kevin, after moree than eleven years, has found a workaround.
Best
Klaus
I am sure that Kevin, after moree than eleven years, has found a workaround.
Best
Klaus
Re: Position window multiple monitors?
I hope so
Only in case someone goes through this thread looking for a solution, they can find it.
Only in case someone goes through this thread looking for a solution, they can find it.