Hi Fred et al,
I use the following script to switch the monitor I wish to use for the
revmenubar and revTools and then position pallets like my own rTools and
tmAlign3. It is working quite nicely for me with my external monitor positioned
above my MBP and “Displays have separate spaces” unchecked.
on mouseUp
put the screenrects into tsr
if the number of lines of tsr = 2 then
if the left of stack revmenubar = item 1 of tsr then
set the left of stack revmenubar to item 1 of line 2 of
tsr
set the top of stack revmenubar to item 2 of line 2 of
tsr + 25
else
set the left of stack revmenubar to item 1 of tsr
set the top of stack revmenubar to item 2 of tsr + 25
end if
end if
positionPalletes
pass mouseUp
end mouseUp
on positionPalletes
set the top of stack revtools to the bottom of stack revMenuBar + 20
set the left of stack revTools to the left of stack revmenubar
set the top of stack rtools to the bottom of stack revMenuBar + 20
set the left of stack rTools to the right of stack revtools
set the left of stack tmAlign3 to the right of stack revMenubar
set the top of stack tmAlign3 to the top of stack revMenubar
end positionPalletes
HTH,
Roger
> On May 6, 2021, at 1:41 AM, Fred Moyer via use-livecode
> <[email protected]> wrote:
>
>
>
>> On May 4, 2021, at 5:32 PM, Fred Moyer <[email protected]> wrote:
>>
>> Anyone having problems with multiple monitors and LC? I’m running 9.6.1 -
>> Mac. I have a feeling LC is confused because I like to connect and
>> disconnect monitors from my MacBook Pro. (Even the MacOS sometimes gets
>> confused.) But now LC is doing crazy things — even when no external monitors
>> are connected. I’ll move the mouse to the top of a stack window, and ask for
>> the Mouseloc and it will return something like "100,-60”. If I click a
>> button in the middle of the stack, the click will register in an object the
>> 60 pixels above that. It’s not always 60 — the wrongness changed as I move
>> the stack around. Other times it works fine. I can’t find a pattern to set
>> it off.
>>
>> Any suggestions?
>> Thanks.
>>
>> Fred
>>
>>
>
> Thanks everyone for the interesting replies. I learned a lot
> (“desktopChanged", "the working screenrects,” difference between "the
> screenrect" and "the screenrects," etc.) I have a hunch, though, my problem
> may relate to stack RevMenubar and some accommodation the IDE makes for “the
> mouseV” depending on whether RevMenubar is showing or whether you have your
> own menubar or whether that screen has a menubar in it — I dunno. I’ve
> never understood how this works. I notice sometimes, though, when I turn on
> Toolbar Text, it shows up about 100 or 200 pixels down.
>
> Fred
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode