Jacqueline,
I'm fully aware that stacks and cards are not controls.  As I said, I was 
responding to your comment on my post:

> 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.

...you said:

> 
> But lockloc doesn't restrict that for any object. 


I took that to mean that lockloc doesn't lock the top left of any object which 
is not what the dictionary says.  It wouldn't be the first time I've found 
inaccuracies in the dictionary so thought it worthwhile to confirm if it is 
correct or not on this issue.  Since I posted my comment, I've verified that 
the dictionary is correct.

This whole mess got started by me reading the following in the dictionary in 
the entry for the height property:

"If an object's lockLocation property is false, when you change its height, it 
shrinks or grows from the center. The object's top and bottom edges both shift, 
while the object's location property stays the same. If the object's 
lockLocation property is true, it shrinks or grows from the top left corner: 
the object's top edge stays in the same place, and the bottom edge moves."

I assume the word "object" includes stacks and cards in LC terminolgy, but 
maybe I'm wrong on that.

Pete Haworth









On Jan 22, 2011, at 1:46 PM, J. Landman Gay wrote:

> On 1/22/11 12:11 PM, Peter Haworth wrote:
>> You're missing the point.  I was responding to a prior post that said
>> locklocation does not affect how a stack grows when its height
>> changes, not whether it applies to a card or not.
> 
> Actually, he's right. Controls are only those objects you can place on a card 
> (the icons in the toolbar are all controls.) Stacks and cards are not 
> controls, they are containers. The docs say that controls will resize from 
> the topleft if lockloc is true, but a stack (or card) is not a control and so 
> the resizing comment doesn't apply to them.
> 
> -- 
> Jacqueline Landman Gay         |     [email protected]
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to