wxWidgets event propagation

Mar 18, 2016 at 4:32pm
I'd like to set some hotkeys for my program that can be raised no matter what object has focus within a wxPanel. Unfortunately, when I connect the event to the wxPanel, the event isn't raised and the callback isn't called.

Does anyone know how to make an event that gets fired no matter what object within a wxPanel has focus?
Mar 18, 2016 at 4:36pm
Mar 20, 2016 at 3:14pm
It works, thanks.
Mar 20, 2016 at 5:07pm
I'm facing a new problem now.

I am switching panels in a wxSimplebook to change the window's GUI (menus, etc). The problem is that niether the panel nor its children will recieve focus when there's no text box within the panel, so no character events are generated and the wxEVT_CHAR_HOOK event isn't raised... I have to click on the darn thing for the key event to be raised.

update:
Using accelerator tables gived the same result.
Last edited on Mar 21, 2016 at 5:51pm
Topic archived. No new replies allowed.