Page 1 of 1
Dual monitors
Posted: Wed Oct 19, 2022 3:00 am
by lemodizon
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
Re: Dual monitors
Posted: Wed Oct 19, 2022 3:27 am
by dunbarx
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
Re: Dual monitors
Posted: Wed Oct 19, 2022 3:32 am
by dunbarx
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
Re: Dual monitors
Posted: Wed Oct 19, 2022 9:01 am
by Klaus
You can check -> the screenrects in the dictionary.
That will give you all the neccessary informations.
Re: Dual monitors
Posted: Wed Oct 19, 2022 9:14 am
by richmond62

- SShot 2022-10-19 at 10.43.38.png (23.38 KiB) Viewed 3469 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:
-
Re: Dual monitors
Posted: Thu Oct 20, 2022 1:08 pm
by lemodizon
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.
Re: Dual monitors
Posted: Thu Oct 20, 2022 1:09 pm
by lemodizon
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.
Re: Dual monitors
Posted: Thu Oct 20, 2022 1:11 pm
by lemodizon
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.