height of title bar

Paul Dupuis paul at researchware.com
Mon Mar 19 13:46:45 EDT 2018

On 3/19/2018 1:37 PM, Phil Davis via use-livecode wrote:
> Is there a way in LC to discover the height of a window's title bar?
> I tried comparing item 2 of the card's globalLoc(topleft of this card)
> to item 2 of the stack's topleft, but they are the same.
> I tried comparing the stack's topleft with no decorations to the same
> but with decorations. No joy. Same.
> Any other ideas?
> Thanks -
> Phil
See the use of the 'effective' keyword in the dictionary under the
rectangle property. Essentially the 'effective rect of window X' minus
the 'rect of window x' give you the height of the title bar for teh top
coordinates and the size of the border for left, right, and bottom

More information about the Use-livecode mailing list