screenRect and screenLoc weirdness

Monte Goulding monte at appisle.net
Thu Jan 10 17:40:51 EST 2019


Tom the issue here is that it is arguable that this is a bug. We have lots of things to work on which we are sure about ;-)

To clarify what I mean. Which set of results is more correct?

Main screen rect: 0,280,1280,1080
2nd screen rect: 1280,0,3200,1080

Main screen rect: 0,0,1280,800
2nd screen rect: 1280,-280,3200,800

I think it would be convenient to have a screenLocs variant of screenLoc so you can:

set the loc of this stack to line (the screen of this stack) of the screenLocs

But that’s another issue as it’s not complicated to write a function using the screenRects

Cheers

Monte

> On 11 Jan 2019, at 9:29 am, Tom Glod via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> i don't like how long a bug like this has been in the queue without being
> fixed. I'm surprised it hasn't affected more people.... but i guess maybe
> thats why its lower in the queue.
> 
> Sorry, but I don't know of any remedies for this.
> 
> On Thu, Jan 10, 2019 at 5:24 PM Knapp Martin via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> 
>> Wow, that’s been around for a while. Anybody have a work-around seeing as
>> how this is unlikely to be fixed? Seems like setting the loc of a window to
>> the center of the screen would be an often used feature. I never noticed it
>> because I don’t have a multi-monitor setup.
>> 
>> Marty
>> 
>>> On Jan 10, 2019, at 1:58 PM, Tom Glod via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>> 
>>> Hi Marty, I saw this the other day...this is probably the bug you are
>>> referencing.
>>> 
>>> https://quality.livecode.com/show_bug.cgi?id=19419
>>> 
>>> On Thu, Jan 10, 2019 at 3:25 PM Knapp Martin via use-livecode <
>>> use-livecode at lists.runrev.com> wrote:
>>> 
>>>> So I just had a customer complain that windows were opening in odd
>>>> locations with his multi-monitor setup: a MacBookPro with a Thunderbolt
>>>> display. He has his displays arranged so that the bottoms were aligned
>> with
>>>> the 2nd display to the left of the MacBook.
>>>> 
>>>> So I hooked my laptop to my TV and discover some weirdness. I started
>> with
>>>> my displays aligned to the top and then got the screenRects and the
>>>> screenLoc:
>>>> 
>>>> Main screen rect: 0,0,1280,800
>>>> 2nd screen rect: 1280,0,3200,1080
>>>> screenLoc: 640,400
>>>> (all as expected)
>>>> 
>>>> Then I realigned the screens so that the bottoms were aligned:
>>>> 
>>>> Main screen rect: 0,280,1280,1080
>>>> 2nd screen rect: 1280,0,3200,1080
>>>> screenLoc: 640,680
>>>> 
>>>> Why would the arrangement of the screens effect the screenRect and
>>>> screenLoc of the main monitor?
>>>> 
>>>> Marty
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list