ScreenRect bug or not

J. Landman Gay jacque at hyperactivesw.com
Tue Jun 3 15:07:44 EDT 2014


On 6/3/2014, 1:32 PM, Terence Heaford wrote:
> the working screenRect = 0,22,1680,1046
> the effective working screenRect = 0,22,1680,1046
> the screenRect = 0,0,1680,1050
>
> If I now "set the rect of this stack to 0,22,1680,1046" then window
> top bar that contains the traffic lights is hidden beneath the Mac
> Menubar.
>
> If I change it to "set the rect of this stack to 0,44,1680,1046” then
> the traffic lights are positioned correctly below the Mac Menubar.

I think what you want is "the effective rect of this stack". The rect of 
the stack gives you the dimensions including the title bar. The 
effective rect gives you only the content dimentions. If you subtract 
item 2 of the effective stack rect from item 2 of the rect of the stack, 
you'll know the height of the title bar.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list