Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I prevent TAB navigation from navigating to a specified control?

0
Posted

How do I prevent TAB navigation from navigating to a specified control?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123