Dual monitors

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
lemodizon
Posts: 219
Joined: Thu Apr 05, 2018 3:33 pm

Dual monitors

Post by lemodizon » Wed Oct 19, 2022 3:00 am

Hello Everyone,

I created an desktop application (queuing number). I setup with dual monitors with different resolution the function of the two monitors is one will serve as a display screen and the other one will serve as user side (input the number). In my application i created a separated stack (displaystack) to display the number.

I want to set my displaystack to the other monitor once i ran my application. is this possible in livecode?

right now every time i ran my application i will drag the displaystack to other monitor.

hope you can help me. thanks
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Dual monitors

Post by dunbarx » Wed Oct 19, 2022 3:27 am

Hi.

There is a property, "the screen" that will tell you which monitor a particular stack lives on. Check the dictionary.

You can then set the loc or topLeft of any stack to the screen coordinates that suit you. I place the Script Editor on one monitortor, with its rect set to the rect of that monitor, and use the other one to hold my working stacks, message box, inspectors, etc.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Dual monitors

Post by dunbarx » Wed Oct 19, 2022 3:32 am

Do you know that the totality of all your monitors share the same screen space? That is, if you tracked the X and Y coordinates as you moved around, you would find that "0,0" is at the topLeft of your "main" screen. For me, since my other monitor lies to the left of that and is much taller, I see negative values of both parameters as I move into that space.

Other programs see it the same. I use a macro program to effect some shortcuts, and have to click in the left monitor. I must specify negative values of X and Y to do that.

Craig

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Dual monitors

Post by Klaus » Wed Oct 19, 2022 9:01 am

You can check -> the screenrects in the dictionary.
That will give you all the neccessary informations.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10098
Joined: Fri Feb 19, 2010 10:17 am

Re: Dual monitors

Post by richmond62 » Wed Oct 19, 2022 9:14 am

SShot 2022-10-19 at 10.43.38.png
SShot 2022-10-19 at 10.43.38.png (23.38 KiB) Viewed 3479 times
-
I have 3 monitors attached to my machine.

The attached stacks (and its 2 substacks) will put 1 stack on a left-hand monitor,
1 stack on a central monitor, and 1 stack on a right-hand monitor:
-
SShot 2022-10-19 at 11.06.02.png
Attachments
MainST.livecode.zip
Stack.
(11.16 KiB) Downloaded 140 times

lemodizon
Posts: 219
Joined: Thu Apr 05, 2018 3:33 pm

Re: Dual monitors

Post by lemodizon » Thu Oct 20, 2022 1:08 pm

dunbarx wrote:
Wed Oct 19, 2022 3:32 am
Do you know that the totality of all your monitors share the same screen space? That is, if you tracked the X and Y coordinates as you moved around, you would find that "0,0" is at the topLeft of your "main" screen. For me, since my other monitor lies to the left of that and is much taller, I see negative values of both parameters as I move into that space.

Other programs see it the same. I use a macro program to effect some shortcuts, and have to click in the left monitor. I must specify negative values of X and Y to do that.

Craig

Hi Craig,

Thanks for sharing. I will try and check this one.
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

lemodizon
Posts: 219
Joined: Thu Apr 05, 2018 3:33 pm

Re: Dual monitors

Post by lemodizon » Thu Oct 20, 2022 1:09 pm

Klaus wrote:
Wed Oct 19, 2022 9:01 am
You can check -> the screenrects in the dictionary.
That will give you all the neccessary informations.
Hi Klaus,

Thanks, I will check it.
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

lemodizon
Posts: 219
Joined: Thu Apr 05, 2018 3:33 pm

Re: Dual monitors

Post by lemodizon » Thu Oct 20, 2022 1:11 pm

richmond62 wrote:
Wed Oct 19, 2022 9:14 am
SShot 2022-10-19 at 10.43.38.png
-
I have 3 monitors attached to my machine.

The attached stacks (and its 2 substacks) will put 1 stack on a left-hand monitor,
1 stack on a central monitor, and 1 stack on a right-hand monitor:
-
SShot 2022-10-19 at 11.06.02.png
Hi richmond62,

This will help,Thanks for the sample file.
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

Post Reply