Re: synchronous resizing of stacks
Posted: Fri Nov 18, 2016 9:32 pm
Ollie.
All correct. "reSizeStack" is sent continuously, sort of like "mouseMove", as one drags. In that way it is both very powerful and very annoying. What is missing is a hard lock on the parameters "oldWidth" and "oldHeight". These change, or rather are updated, at each message event, which means really often. One can save the "old" data in a custom property with (pseudo):
But then how do you use that information in the ongoing, updating incessant string of reSizeStack messages? You cannot keep loading that data, because the continually updated parameters are required to make the process work at all.
Hmmm. Sounds like the margin value thing I mentioned has to be the way forward. This would be a useful tool for general use. Sounds like fun.
Craig
All correct. "reSizeStack" is sent continuously, sort of like "mouseMove", as one drags. In that way it is both very powerful and very annoying. What is missing is a hard lock on the parameters "oldWidth" and "oldHeight". These change, or rather are updated, at each message event, which means really often. One can save the "old" data in a custom property with (pseudo):
Code: Select all
...
set the lastInfo of this stack to the width of this stack && the height of this stack && the loc of this stack
end reSizeStackHmmm. Sounds like the margin value thing I mentioned has to be the way forward. This would be a useful tool for general use. Sounds like fun.
Craig