On Thu, Aug 19, 2010 at 1:25 AM, Chunlin Zhang <zhangchun...@gmail.com> wrote: > 于 2010年05月14日 21:57, Chunlin Zhang 写道: >> Now I use the way that main thread handle the "wxEVT_IDLE",in this event >> handle I try to receive data.And it works >> > In linux(I use ubuntu),I found that wxEVT_IDLE only happy when mouse > move in mainframe,so I have create a timer to run the function.
Note that you can also call wxIdleEvent::RequestMore(true) to get another idle event. Note that doing this uses 100% of the processor so be sure to call it only when you really are processing, but the application will be responsive. This is a standard way in wxWidgets to process something without using threads and have a cancel button usable. Regards, John Labenski ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users