Gambas Documentation
Application Repository
Code Snippets
Compilation & Installation
Components
Controls pictures
Deprecated components
Developer Documentation
Development Environment Documentation
Documents
Error Messages
Gambas Playground
How To's
How To Change the Tab Order of GUI Controls
How To Contribute
How to Create and Open a ".gmail.txt" Archive
How to deal with Git and Gitlab concerning your Project
How to deal with Git and Gitlab for Gambas
How To Deal With Subversion for Gambas
How To Display a Chinese Character
How To Draw with gb.Cairo
How To Enter Data With gb.db.form
How To Get Gambas Web Started (1)
How To Get Started
How To Interface Gambas With External Libraries
How To make a chart with the gb.chart component
How to make a report with Gambas
How To Make KDE Run Gambas Executables Automatically
How To Open, Debug & Compile The IDE
How To Open a MySQL connection and use it
How To Open a SQLite connection and use it
How To Open a Unix ODBC connection and use it
How To Package Gambas
How To Package your Project
How To Print
How to Run Gambas and Gambas Apps on Windows using WSL
How To Run Gambas On Windows using Cygwin
How To Translate A Gambas Project
How To Translate Gambas
How To Translate The Gambas IDE (deprecated)
How To Use Parallel Port
Language Index
Language Overviews
Last Changes
Lexicon
README
Search the wiki
To Do
Topics
Tutorials
Wiki License
Wiki Manual

How To Change the Tab Order of GUI Controls

As you develop a form using the Gambas GUI, you place controls on the form as you go. These can be labels, text boxes etc. Some of those controls will become "tab stops", that is, when your program is run if the user uses the key, it will shift focus from one field to the next. By Default, the order in which it moves between fields is the order in which you have placed those fields (controls) onto the form.

If you later either add new fields, or rearrange the existing ones, it might not make sense to use the order in which they have been placed and you might want to change that order. Unlike other IDE form designers, there is no "Tab Stop" property. To achieve the same effect however, is very simple.

Choose the "Hierarchy" tab. This is right next to the "Properties" tab. Here you will see a list of all the controls on your form. The order in which they are displayed is by implication the tab order. Click on the name of the control you wish to change (or select it on the form) then choose the up or down arrow button to change it's order in the hierarchy. This will change the tabstop order.