Page 1 of 1

Moving focus between fields using tab key

Posted: Tue Nov 10, 2020 6:17 pm
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

Re: Moving focus between fields using tab key

Posted: Tue Nov 10, 2020 9:18 pm
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