- Not quite a good habit, but this class made a lot of use of wxYield()/wxYieldIfNeeded().
- They are used to ensure the update of GUI(e.g. the page turn of wxNotebook) is done
- before any further screenshot-taking, or to do the timing(in Delay()). Without their use,
- there would be subtle bugs.
-
- I've read documents about wxYield() and understand the down side of it before using it.
- But I didn't find a better approach to do those things, and I used them carefully. So
- please DO NOT remove any of these wxYield()s unless you're sure that it won't cause problems
- on all of MS Windows XP/Vista, Linux(Ubuntu/Fedora), Mac OS Tiger/Leopard. And please
- help me to find a better approach, thank you :)
+ Not quite a good habit, but this class made a lot of use of wxYield() /
+ wxYieldIfNeeded(). They are used to ensure the update of GUI (e.g. the
+ page turn of wxNotebook) is done before any further screenshot-taking, or
+ to do the timing(in Delay()). Without their use, there would be subtle
+ bugs.
+
+ I've read documents about wxYield() and understand the down side of it
+ before using it. But I didn't find a better approach to do those things,
+ and I used them carefully. So please DO NOT remove any of these wxYield()s
+ unless you're sure that it won't cause problems on all of MS Windows
+ XP/Vista, Linux(Ubuntu/Fedora), Mac OS Tiger/Leopard. And please help me
+ to find a better approach, thank you :)