Trying to understand the inner workings of ResizeStack

Terence Heaford t.heaford at icloud.com
Mon Mar 14 10:58:10 EDT 2016


Resent message because of copy/paste from docs did not work well.



Consider:

--------

on resizeStack pWidth,pHeight
   myUpdateGeometry
   dispatch "refreshChart" to group "netWorthChart"
   --pass resizeStack
end resizeStack

The docs say:

The resizeStack message is sent after the resizing is finished. If the stacks live resizing property is true, resizeStack messages are sent continuously during resizing...

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 propertyis not set to true.)

-----------

1. If you drag a window to resize it, the resize message is sent more than once?

2. and resizeStack is called each time? Is the screen locked more than once and is it accumulative.

3. Does resizeStack automatically unlock the screen after each pass?

4. Do multiple resizeStack messages get sent by LC even though myUpdateGeometry and dispatch “refreshChart” may not have completed (if they are long scripts)?

5. Is it necessary to call lock screen in myUpdateGeometry and dispatch “refreshChart”?



Why am I asking?

Because I get a weird screen flash in “refreshChart” if the first line of the script is not unlock screen.


Thanks

Terry


More information about the use-livecode mailing list