GUI control TAB order
by David Barr · in Torque Game Engine · 11/20/2005 (8:25 am) · 1 replies
Hopefully this post will help someone someday.
TAB order between controls in a GUI is determined by the order that the tabbable controls (such as text entry boxes) appear in the .gui file.
The twist here though is that the last control listed in the .gui file is the one that has focus when the GUI is first displayed. The TAB order then goes back to the first tabbable control listed in the .gui file then the 2nd and so on in a cycle.
Just to be clear, if your tabbable controls in your GUI were laid out as follows (excuse ascii art) :-
A B C
D E F
and you wanted to TAB through them in order starting in A and then B through to F they would need to appear in the .gui file in the order :
B
C
D
E
F
A
This can be achieved by hand editing the .gui file (in note pad or some text editor) to rearrange the order the controls are listed after you have finished designing the GUI.
TAB order between controls in a GUI is determined by the order that the tabbable controls (such as text entry boxes) appear in the .gui file.
The twist here though is that the last control listed in the .gui file is the one that has focus when the GUI is first displayed. The TAB order then goes back to the first tabbable control listed in the .gui file then the 2nd and so on in a cycle.
Just to be clear, if your tabbable controls in your GUI were laid out as follows (excuse ascii art) :-
A B C
D E F
and you wanted to TAB through them in order starting in A and then B through to F they would need to appear in the .gui file in the order :
B
C
D
E
F
A
This can be achieved by hand editing the .gui file (in note pad or some text editor) to rearrange the order the controls are listed after you have finished designing the GUI.
Associate Dave Calabrese
Cerulean Games
So, in TGE1.3, if you want your tab order ABCDEF you would order them in your GUI file as:
A
B
C
D
E
F
Would anyone using TGE1.2 or TGE1.4 like to confirm how this functions in those versions?