Geometry Manager

J. Landman Gay jacque at hyperactivesw.com
Wed Jan 25 14:18:38 EST 2012


On 1/25/12 12:17 AM, Pete wrote:
> Hi Jacque,
> Setting lockloc to true fixed it, thanks!  For some reason or other, I have
> a hangup about that property - always seems like it's the wrong way round,
> with "locked" meaning it will change dimensions and "not locked" meaning it
> won't.

Think of it as "locked down", maybe that will help. It's locking the 
location, i.e., the rectangle, so it won't move.

>
> My one remaining piece of the puzzle is to only have the scrollbars visible
> when they are needed.  I'm guessing that I should use the resizeStack
> message to check if the group needs the scrollbars or not....

The scrollbars should automatically go blank if the group fully encloses 
its contents, and draw the thumb if it doesn't. If you mean you want to 
remove them entirely, check the formattedwidth and formattedheight of 
the group, compare those to the width and height (the locked rect) and 
hide/show the scrollbars as needed.

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




More information about the use-livecode mailing list