On Thu, Oct 18, 2012 at 11:14 PM, Paul K <paulclin...@yahoo.com> 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 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users