Performance Design Question
Stefan Csomor
csomor at advancedconcepts.ch
Sun Aug 19 03:22:23 PDT 2007
Hi Matt
how about using a wxProgressDialog ? in the dialogs sample you find a
snippet of code to start with ...
HTH
Stefan
matt at kettlewell.net wrote:
> I had a question relating to processing things in a separate "thread"
> from my GUI processing.
>
> Essentially I have a menu item that when pressed, causes about 30-60
> sec. of processing. When I run this the GUI appears to lock-up to the
> user (no big surprise there).
>
> So my question is: What are some of the common/best ways to approach
> this?.
>
> 1. I've thought about creating a detached thread that can run and give
> the control back to the user.
>
> 2. Or somehow put the processing into an "idle-event" of some sort (I
> don't know how to do this, but would be interested to see how this
> would be done).
>
> 3. I could wxYield the code...
>
> 4. The wxWidgets book mentions a way to use a wxTimer of somesort...
>
> Without all my intricate details it would be impossible to know what
> is the best/right solution for me, but in general, what would be
> considered best practice, and have I missed any others that would be
> benefitial?
>
> Thanks
>
> Matt
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
--
Advanced Concepts AG
Software-Engineering
Heldweg 10
CH-8475 Ossingen
Switzerland
phone:+41 52 245 0 245
fax:+41 52 245 0 246
http://www.advanced.ch
mailto:csomor at advanced.ch
More information about the wx-users
mailing list