Rects Revisted

Bob Sneidar bobsneidar at iotecdigital.com
Wed Jun 26 18:29:05 EDT 2019


Thanks Dar. That is exactly what I did. I guess I was expecting the effective working rect of a screen to be the area within which a window could be fully displayed accounting for all the accoutrements. (That's French you know. :-)

Bob S


> On Jun 26, 2019, at 15:04 , Dar Scott Consulting via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> The effective rect of the stack is the absolute rect of the window including the title, all of the borders (where there are any) and and the decorations. Thus, the top will be (say) 22 pixels less than the rect of the stack.
> 
> You can subtract the upper left of the working screenRect from either to get a rectangle within the working area. (Don't forget that the dock might be on the left.)
> 
> Slightly related: If the window is over the IDE toolbar, the rect and effective rect of the stack are off by the height of the tool bar. It seems to have assumed that it shifted the window to be below it.





More information about the Use-livecode mailing list