[SOLVED] Tab Traversal Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Slyde
Earned some good credits
Earned some good credits
Posts: 136
Joined: Mon Apr 09, 2018 11:08 pm

[SOLVED] Tab Traversal

Post by Slyde »

This may seem like a nonsensical question, but I need to know if adding a panel to a frame, then all your widgets to that panel, is a rule that you have to follow? I ask because this video shows tab traversal not working as he tries to tab from one text box to the other @ 0:14 seconds in. He says those TextCtrls have to be on a panel before you can tab traverse them. However, without a panel added to my frame, I'm able to tab traverse.

Even though I can tab traverse without adding a panel, shld I add one to lay out my widgets? Is doing so a best practice?
Last edited by Slyde on Wed Mar 29, 2023 9:51 pm, edited 1 time in total.
Linux Mint 21.3 | wxWidgets-3.2.4
Windows 10 | wxWidgets-3.2.4
CLion IDE
User avatar
doublemax
Moderator
Moderator
Posts: 19158
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Tab Traversal

Post by doublemax »

Slyde wrote: Wed Mar 29, 2023 7:37 pm Even though I can tab traverse without adding a panel, shld I add one to lay out my widgets? Is doing so a best practice?
Yes
Use the source, Luke!
Slyde
Earned some good credits
Earned some good credits
Posts: 136
Joined: Mon Apr 09, 2018 11:08 pm

Re: Tab Traversal

Post by Slyde »

Thanks, doublemax.
Linux Mint 21.3 | wxWidgets-3.2.4
Windows 10 | wxWidgets-3.2.4
CLion IDE
Post Reply