Changiing the height of a stack
Pete (Molly's Revenge)
pete at mollysrevenge.com
Fri Jan 21 22:20:29 EST 2011
Well, I guess I was misled by the dictionary then because it says:
If a control's *lockLocation* property is false, when you change its
height, it shrinks or grows from the center: the control's top and bottom
edges both shift, while its location property stays the same. If the
control's *lockLocation* property is true, it shrinks or grows from the top
left corner: the control's top edge stays in the same place, and the bottom
That's exactly what I want to happen with the card.
But changing the rectangle works as well so at least I can do what need to
On Fri, Jan 21, 2011 at 5:31 PM, J. Landman Gay <jacque at hyperactivesw.com>wrote:
> On 1/21/11 6:57 PM, Pete (Molly's Revenge) wrote:
>> So why is the checkbox even there?
> Don't know. It was probably easier to leave it in place and disable it than
> to remove it and move everything else up. It probably shouldn't be there, I
> agree it gives the impression that it could be used for something.
> And, with respect, there is something to
>> lock - the top left of the card when you change its height via script,
>> that's all I want to use it for.
> But lockloc doesn't restrict that for any object. For what you want, you
> need to manipulate the rect of the object, whether it's a stack, a button,
> or anything else. Size always changes from the center outward.
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
Molly's Revenge <http://www.mollysrevenge.com>
More information about the Use-livecode