CrossPlatform GUI Programming with wxWidgets [Electronic resources]

Julian Smart; Kevin Hock; Stefan Csomor

نسخه متنی -صفحه : 261/ 143
نمايش فراداده

  • The wxWidgets Threads Sample

    You can find a working example of many of the features we have described in samples/thread in your wxWidgets distribution (see Figure 17-1). In this example, you can start, stop, pause, and resume threads. It demonstrates a "worker thread" that periodically posts events to the main thread with wxPostEvent, indicated by a progress dialog that cancels the thread when it reaches the end of its range.

    Figure 17-1. wxWidgets Threads Sample

    [View full size image]