Problems with Multiple Monitors

Paul Dupuis paul at researchware.com
Wed May 5 12:34:00 EDT 2021


On 5/5/2021 12:15 PM, Mark Wieder via use-livecode wrote:
> On 5/5/21 8:53 AM, Paul Dupuis via use-livecode wrote:
>
>> I'm afraid I can't help with this. A good while ago, I moved to my 
>> own centerWindow command that doesn't use screenLoc, but uses the 
>> stack's (window's the screen property 9for the line number of the 
>> screenRect the stack is on) and the screenRects to get the rect of 
>> the monitor the window is on. I then use that monitor's rect to get 
>> the center coordinates and then adjust for any menubar or taskbar, 
>> etc to get the effective center for that monitor to center a window 
>> (I think I actually now use the working screenRects or effective 
>> screenRects or maybe the effective working screenRects ;-)
>
> Yep - that's what I do as well.
> A couple of useful enhancements would be
>
> the screenLocs # return a list
> the screenLoc(2) # allow a parameter for the screen number
>

+1 to both of those!




More information about the use-livecode mailing list