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.

Paul.

On Thu, Oct 18, 2012 at 7:36 PM, John Labenski <jlaben...@gmail.com> wrote:
> On Thu, Oct 18, 2012 at 1:23 AM, Paul K <paulclin...@yahoo.com> wrote:
>> Hi John,
>>
>>> You should be able to call Connect() on the window you're interested
>>> in getting them from.
>>>
>>> window:Connect(wx.wxEVT_KEY_DOWN, Lua function)
>>
>> I'm looking for reducing the number of windows to check as there are
>> many that can trigger those events. I tried attaching the handlers to
>> the main window, but I don't get the events I need. I think the
>> difference is that FilterEvent is called before any of the regular
>> handlers are called, but the handler that is attached to the main
>> window is called only if the event is propagated up the chain and it
>> depends on how that event is handled.
>
> Key events are not passed to their parents, only wxCommandEvent and
> derived classes are.
>
> If you can you explain what you are trying to do I might be able to help.
>
> 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

------------------------------------------------------------------------------
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

Reply via email to