Getting Combobox and RadioList to ignore TAB key

Dear List,

I am attempting to control the tab order through fields on a complex form and so far I have an accelerator table which maps the tab key to my controlling function. For text fields this works great. However, when I tab off of either of these two fields-types I don't capture the event at all, and if I am in a modal frame I end up without focus anywhere.

By the way, this occurs with Buttons as well.

Can someone enlighten me as to why buttons and these special types of widgets seem to not be managed by the panel, and how I might rope control back to my controller function.

thanks,

Michael Beaulieu

Michael Beaulieu wrote:

Dear List,

I am attempting to control the tab order through fields on a complex form and so far I have an accelerator table which maps the tab key to my controlling function. For text fields this works great. However, when I tab off of either of these two fields-types I don't capture the event at all, and if I am in a modal frame I end up without focus anywhere.

By the way, this occurs with Buttons as well.

Platform? Version? How/where are you catching the key events? Have you tried using EVT_NAVIGATION_KEY events instead?

Can someone enlighten me as to why buttons and these special types of widgets seem to not be managed by the panel, and how I might rope control back to my controller function.

I've noticed that sometimes on MSW the native widgets grab keys and call the internal APIs to handle them before the raw messages/events can be delivered to wxWidgets and turned into wxEvents. That sounds like a likely culprit here.

ยทยทยท

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