Problems with Multiple Monitors

Mark Wieder ahsoftware at sonic.net
Wed May 5 12:15:16 EDT 2021


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
  ahsoftware at gmail.com




More information about the use-livecode mailing list