how to dispatch all user interface events

Hi all,

Can a wxWindow dispatch all events (mouse, keyboard) ?
In other words can all events be "wxEvent::Skip"ped
without having to catch all events and skipping in each handler?

If you don't bind a handler for an event then it will be as if you did
and the handler only called event.Skip(). Does this answer your question?

Yes it does, Thanks for your answer, but I have a more specific one:
Can mouse and keyboard events (recieved by a wx.Window inside a wx.Frame)
be dispatched to a non-wxPython window ?
For example a vendor supplied window that has it's own event handler and that
is embedded into a wxPython window through it's handle.

Good Day,
Arye.

Arye wrote:

Hi all,

Can a wxWindow dispatch all events (mouse, keyboard) ?
In other words can all events be "wxEvent::Skip"ped
without having to catch all events and skipping in each handler?

If you don't bind a handler for an event then it will be as if you did
and the handler only called event.Skip(). Does this answer your question?

Yes it does, Thanks for your answer, but I have a more specific one:
Can mouse and keyboard events (recieved by a wx.Window inside a wx.Frame)
be dispatched to a non-wxPython window ?
For example a vendor supplied window that has it's own event handler and that
is embedded into a wxPython window through it's handle.

Yes, sorta. You'll have to translate the events back to Windows messages and send them to the window yourself.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!