I am really having a hard time on explaining myself (sigh).
Bogs, I know that the controls don't move if you resize a stack.
On controls you can run this:
Code: Select all
put the loc of graphic "TheRect" into tLoc
set the locklocation of graphic "TheRect" to false --stretch from center
set the width of graphic "TheRect" to 50
set the height of graphic "TheRect" to 50
if the loc of graphic "TheRect"= tLoc then --is not changed
put "True" into msg
else
put "False" into msg
end if
Result is always "true" because the width of the control is changes form the
center. If you change the lock location to true then the result is false.
Now forget the controls. The above is what I wanted to do with a scripted stack resize. Reading the dictionary, seems that if you change the width
property of a stack, the center loc stay the same, but it is not true.
Running this:
Code: Select all
set the width of this stack to 300
always stretch from the TopLeft corner.