..Sorry Klaus, I may not have explained my self:.......
What I got instead, is that after reducing the width of the stack, the two rect controls are not in the middle anymore. Don't tell me that i can move them to center, because I know.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
..Sorry Klaus, I may not have explained my self:.......
This is correct behavior!
I already gave you an answer: http://forums.livecode.com/viewtopic.ph ... 65#p165159
Code: Select all
-- In Place Animated stack resize/expand
on mouseUp
local lnLoc, lnW, lnH
constant kMaxWidth = 500
constant kMaxHeight = 500
put the width of this stack into lnW
put the height of this stack into lnH
put the loc of this stack into lnLoc
repeat forever
add 2 to lnW -- Change the number for different speeds
add 2 to lnH
-- We don't want increase the height or Width greater asked for if they are different start and end sizes
put Min(lnW,kMaxWidth) into lnW
put Min(lnH,kMaxHeight) into lnH
set the width of this stack to lnW
set the height of this stack to lnH
set the loc of this stack to lnLoc
if (lnW >= kMaxWidth) AND (lnH >= kMaxHeight) then
exit repeat
end if
unlock screen
-- This has different effects on expand and squish routine in the stack - play with the number of milliseconds
wait 0 with messages
end repeat
end mouseUp
Code: Select all
unlock screen
<sigh> Since my last one was in a completely different topic, and I am obviously not moving as fast as a 'bot' might, I would suspect the timer needs some adjusting eh.You cannot make another post so soon after your last.