Moving focus between fields using tab key

General questions regarding the usage of CodeLite
User avatar
ColleenKobe
CodeLite Expert
Posts: 129
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

Moving focus between fields using tab key

Post by ColleenKobe »

Hi.

I'm creating my GUI using wxCrafter and CodeLite. Wonderful team!

I have keyboard-based users who move the focus between fields on the screen using the tab key, instead of the mouse.

How do I set up my fields in wxCrafter and CodeLite to define the sequence to move between fields using the tab key?

Also, if the focus is in a wxTextCtrl field and the user presses the tab key, I want the focus to move OUT of the field to the next field (not be part of the text being entered).

I tried to find answers to this question in the CodeLite forum, but the word "tab" was deleted from the keyword lists I tried, and the remaining answers tended to be for questions on setting up the tab fields in the editor.

wxCrafter: 2.9
CodeLite: 14.0.0
Windows 10

Thanks!

Colleen Kobe
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Moving focus between fields using tab key

Post by DavidGH »

Hi,
I tried to find answers to this question in the CodeLite forum
As so often, you're looking in the wrong place. Tab traversal is a wxWidgets thing, so try the wxForum etc. I searched there for 'tab order': This thread is the first result.
Also, if the focus is in a wxTextCtrl field and the user presses the tab key, I want the focus to move OUT of the field to the next field (not be part of the text being entered).
Again, a wx thing. See wxTE_PROCESS_TAB in the wx docs.

Regards,

David
Post Reply