Trying to understand the inner workings of ResizeStack

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


Consider:

--------

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

The docs say:

The resizeStack message <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/dictionary/keyword/2063.xml> is sent after the resizing is finished. If the stack's <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/glossary/s/48.xml> liveResizing <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/dictionary/property/1233.xml> property <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/glossary/p/257.xml> is true, resizeStack messages <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/glossary/m/219.xml> are sent continuously during resizing...

The screen is locked while a resizeStack handler <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/glossary/h/512.xml> is running, so it is not necessary to use the lock screen <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/dictionary/command/2470.xml> command <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/glossary/c/402.xml> to prevent changes from being seen. (However, the lockScreen <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/dictionary/property/965.xml> property <applewebdata://B4F1B5D6-C3FD-4383-AA1E-02B834B4F908/glossary/p/257.xml> is 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