Detecting height of dock and taskbar

Sarah Reichelt sarah.reichelt at gmail.com
Thu Sep 29 16:45:02 EDT 2005


> > Check out the windowBoundingRect. It gives you the usable rectangle
> > allowing for the dock or taskbar. However with Macs, it does not allow
> > for the menu bar, so you may need increase the 2nd item to stop your
> > windows disappearing under the menu bar.
>
> Maybe that was an old bug that's been fixed?  I just ran "put the
> windowBoundingRect" in MC on my 15" PB and got "0,22,1234,854", which
> accomodates 22 pixels for the menu bar.
>

I think it has only been partially fixed :-(
In a Rev stack, the menu bar takes up 22 pixels (or is it 26), but if
you move a window right to the top of the screen and check it's top,
it will be 44, so the 22 reported in the windowBoundingRect is
insufficient.

Sarah



More information about the use-livecode mailing list