|
From: John L. <jla...@gm...> - 2010-08-19 22:40:36
|
On Thu, Aug 19, 2010 at 1:25 AM, Chunlin Zhang <zha...@gm...> 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
|