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 -- Mark Wieder ahsoftw...@gmail.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode