How do I prevent TAB navigation from navigating to a specified control?
The only way Ive found to do this is to create a sub-class of the control, and implement the SetFocusFromKbd() function. Whenever SetFocusFromKbd() is called by wxWidgets, simply call “Navigate()” to move away again: class wxMyButton : public wxBitmapButton { public: . . . void SetFocusFromKbd() { Navigate(); } }; But note: this may not work for when people press SHIFT-TAB to move backwards through the tabs (more research is needed).