Multiple monitors &
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Multiple monitors &
I have several computers that use more than one monitor [Mac and Linux], including a 2018 Mac Mini with 3, and started wondering . . .
I shall use the Mac Mini as my example machine.
Let's imagine I have a "monster stack" that is 4000 pixels wide and extends across my 3 monitors (my widest is 1920 pixels) . . .
. . . It's a fairly pedestrian game where 'sprites' are moved around with the arrow keys on my keyboard . . .
Here's a picture of my monitor layout when I turn on my machine:
- -
However, I have designed my "monster stack" on the premise that my monitors will be arranged like this:
- -
1. Is there anyway LiveCode can detect the screen arrangement? so, if so, it can flash a signal to the end-user to rearrange their monitor layout.
"In a perfect world" my stack/standalone should be placed like this when it starts up:
-
I shall use the Mac Mini as my example machine.
Let's imagine I have a "monster stack" that is 4000 pixels wide and extends across my 3 monitors (my widest is 1920 pixels) . . .
. . . It's a fairly pedestrian game where 'sprites' are moved around with the arrow keys on my keyboard . . .
Here's a picture of my monitor layout when I turn on my machine:
- -
However, I have designed my "monster stack" on the premise that my monitors will be arranged like this:
- -
1. Is there anyway LiveCode can detect the screen arrangement? so, if so, it can flash a signal to the end-user to rearrange their monitor layout.
"In a perfect world" my stack/standalone should be placed like this when it starts up:
-
Re: Multiple monitors &
Try this
put the working screenrects
This will give you a list of the dimensions for each screen attached.
From the dictionary.
put the working screenrects
This will give you a list of the dimensions for each screen attached.
From the dictionary.
Hope this helps.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.
Andy .... LC CLASSIC ROCKS!
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Multiple monitors &
I suspect it is the lockdown, but I keep hearing voices . . . most saying either extremely rude or blasphemous things . . .the order of the rest are in an OS-specific order
. . . for instance, an extremely heavy, coarse voice just breathed "truly cross-platform" into my gully lug.
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Dual monitor fudge.
On my 2006 iMac running MacOS 10.7.5 if I drag a window between the monitors I can see half of the window in each monitor.
Doing that on my Mac mini running MacOS 10.15.5 doesn't work like that (see silly picture above).
Does anyone know of a way to get the mac mini to behave like the earlier machine and system?
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Dual monitor fudge.
Uncheck the 'separate spaces' box.
1. Why does Apple shove things up one's nose and not document how to "regress" if one wants to?
2. As our house is in the clutches of the builders where are the Guinness Book of Records people going to stay
when they come to write down the details of my world record for replying to my own posts?

-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Multiple monitors &
Now I have just discovered that MacOS 10.15.X behaves oddly with dual monitors:
- -
Which is going to be a big pain-in-the-bum for any would-be developer of a multi-display-spanning-standalone . . .
You can turn off this feature via the 'Mission Control' panel [what a stupid and non-intuitive name and place to look]
in the system preferences . . . but as this is poorly documented it is unlikely that most of a targetted demographic will have done that.
So . . . the next Q is how one can detect if an end-user has "Displays have separate Spaces" checked or not.
- -
Which is going to be a big pain-in-the-bum for any would-be developer of a multi-display-spanning-standalone . . .
You can turn off this feature via the 'Mission Control' panel [what a stupid and non-intuitive name and place to look]
in the system preferences . . . but as this is poorly documented it is unlikely that most of a targetted demographic will have done that.
So . . . the next Q is how one can detect if an end-user has "Displays have separate Spaces" checked or not.
-
- VIP Livecode Opensource Backer
- Posts: 10049
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Multiple monitors &
Should I merge the duplicate thread posted to the "Off Topic" forum here?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
-
- VIP Livecode Opensource Backer
- Posts: 10049
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Multiple monitors &
Thanks. Done.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Multiple monitors &
Is anyone aware of this phenomenon of running desktops on multiple monitors in separate spaces
is used in operating systems other thean MacOS?
Re: Multiple monitors &
I have my linux development environment spread across three monitors, and I use the working screenrects to get the dimensions and then work out from the stack locations which monitor they're on. This mostly works, although it would certainly be nice if the screenloc function could return more than just the main screen. Screenloc(2) would be a very useful enhancement.
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Multiple monitors &
As you will see, this is done in a very primitive way using 2 list fields (Klaus has been getting on my case
about over use of fields since about 2002); mainly because I knocked it together just now in about 15 minutes.
This does not mean the general principle holds and can be re-written in a more efficient fashion.
All the Best.

- Attachments
-
- sLox.livecode.zip
- Here's the stack.
- (1.12 KiB) Downloaded 251 times
Re: Multiple monitors &
Thanks - yes I'm aware that I can do this myself, and I do it when necessary.
I just think it would be a nice enhancement if the screenlocs() were an adjunct to the screenrects(), in the same way we now have the screenloc() and the associated screenrect().
And extra credit for screenlocs(2) etc. All I'm saying.
I just think it would be a nice enhancement if the screenlocs() were an adjunct to the screenrects(), in the same way we now have the screenloc() and the associated screenrect().
And extra credit for screenlocs(2) etc. All I'm saying.

PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev