Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
A stack with hundreds of controls can be resized by hand without issue. Do you mean that the controls themselves are to be resized along with the stack? Or do you mean thousands of controls? There is a sort of "stuttery" delay if that number live on a card.
on resizestack
if mousedown = "false" and "set_locs" is not in the pendingMessages then
send "set_locs" to me in 300 milliseconds
-- or this card/this stack/whatever appropriate target
-- or in suitable time delay
end if
end resizestack
if you want to do proper triggering only to fire once for certain, however long the resize takes, you could deliberately cancel any "set_loc" message in the pendingMessages before sending a new message.
The main problem with the stuttering is because there is a datagrid on the layout which adjusts the height of each of its rows depending on its contents.
I gave the lock screen a go but couldn't get this to work.
Some hints:
We do not need to use "lock screen" in resizestack handler:
The screen is locked while a resizeStack handler is running, so it is not necessary to use the lock screen command to prevent changes from being seen. (However, the lockScreen property is not set to true.)
And MOUSEDOWN is a message and not a function, means it will always return FALSE, if the mouse is down or not.