The wxWidgets Threads Sample

team bbl


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


    team bbl



    Cross-Platform GUI Programming with wxWidgets
    Cross-Platform GUI Programming with wxWidgets
    ISBN: 0131473816
    EAN: 2147483647
    Year: 2005
    Pages: 262

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net