Problems with Multiple Monitors

Paul Dupuis paul at
Wed May 5 12:35:24 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

I'd also like to see 'effective' and 'working' applied to the screenRect 
and screenRects and screenRect(the screen of window X)

More information about the use-livecode mailing list