Problems with Multiple Monitors

Paul Dupuis paul at researchware.com
Wed May 5 11:53:27 EDT 2021


On 5/5/2021 11:42 AM, Richard Gaskin via use-livecode wrote:
> Thanks, Paul, and the others who chimed in.
>
> I'm familiar with the documented features for screen metrics, just 
> trying to determine if the rect of the main screen no longer being the 
> reference point for metrics is a change/bug I need to be concerned about?
>
> And this got me thinking about screenLoc: if the main screen isn't the 
> reference point, then is the screenLoc adjusted for the non-0,0 corner 
> or is it based on the sum boundary of all connected monitors?
>
> And is any of this platform-specific?
>
> Or different from how it's been since the plural screenRects was 
> introduced?
>

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 ;-)





More information about the use-livecode mailing list