No, I think you just misunderstand it. It is an edge trigger: EVT_IDLE fires
when the GUI state transitions from "busy" to "idle". Thus, every time the GUI
has something to do (like handle a mouse event), as soon as it is done handling
the event, EVT_IDLE will fire. Mouse movement causes a LOT of events, so it
switches back to idle many times.
EVT_IDLE does not continue to fire while the GUI remains idle. For that, you
will need to do something else, like a separate thread.
···
On Fri, 11 Jul 2003 13:58:57 +1200, Thomas CLive Richards <thomi@thomi.imail.net.nz> wrote:
Why is it that the EVT_IDLE only triggers when the mouse is moving? this
seems *very* weird, as surely that's when the gui is *not* idle...What I'm looking for is a way to trigger a process whenever the gui's
not doing anything else, and EVT_IDLE looks like the way to go, but it
doesn't seem to work unless I move the mouse...any ideas? am i perhaps using the wrong EVT type?
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.