Position window multiple monitors?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Kevin
Posts: 74
Joined: Fri Oct 02, 2009 3:47 pm

Position window multiple monitors?

Post by Kevin » Fri Feb 05, 2010 10:46 pm

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Position window multiple monitors?

Post by bn » Fri Feb 05, 2010 10:52 pm

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

Kevin
Posts: 74
Joined: Fri Oct 02, 2009 3:47 pm

Re: Position window multiple monitors?

Post by Kevin » Sat Feb 06, 2010 5:06 pm

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

Kevin
Posts: 74
Joined: Fri Oct 02, 2009 3:47 pm

Re: Position window multiple monitors?

Post by Kevin » Sat Feb 06, 2010 7:20 pm

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.

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Position window multiple monitors?

Post by andresdt » Fri Apr 09, 2021 5:26 pm


Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Position window multiple monitors?

Post by Klaus » Fri Apr 09, 2021 6:06 pm

Hi andres,

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


Best

Klaus

andresdt
Posts: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: Position window multiple monitors?

Post by andresdt » Fri Apr 09, 2021 6:53 pm

I hope so :D :D :D

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

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”