From: John L. <jla...@gm...> - 2012-10-19 04:43:19
|
On Thu, Oct 18, 2012 at 11:14 PM, Paul K <pau...@ya...> wrote: > Hi John, > >> If you can you explain what you are trying to do I might be able to help. > > Sure; I'm trying to detect idle time in the application when a user > doesn't do any activity for X seconds. Any activity is defined as > EVT_MOTION and EVT_KEY_DOWN events, but I'll settle for EVT_KEY_DOWN > if it's difficult to track both. I don't want to keep adding my > handlers to all the components I have and am looking for as few places > to modify as possible. How about something like this? http://utmostlogic.wordpress.com/tag/wxwidgets/ A wxIdleEvent event is sent after every event or batch of events so you are guaranteed to get it. You could be "tricked" that a user was active with your app if a different window is dragged on top and a paint event sent, but does that matter? Regards, John |