How Do I Set the Tabbing Sequence of the Controls on the Form? (Magic xpa 4.x)
By default, the cursor on a Magic xpa form will move about as you expect it to, from top to bottom and left to right. However, you can override the default tabbing sequence if you need to, by following the instructions below.
-
Set the Automatic Tab Order form property to False.
-
Now, in the Control Properties of each control, you can enter a number in the Tab order property, or create an expression that will set the tab order at runtime. If the Tab order property shows up in gray and you can’t change it, go back to step 1.
(Note: Controls that use an expression rather than a variable will always show in gray, because you can’t tab to them.)
-
You can view the tab order by pressing the Tab Order toolbar icon.
When you change the tab order of a control, the Form Editor keeps the tab order in tight sequence. For example, if you change the tab order ‘1’ to ‘2’, then the Form Editor will change the existing ‘2’ to ‘1’.
You can also set the tab order for several controls at once.
-
First, set the Automatic Tab Order form property to False as explained above.
-
Hold down the CTRL key while clicking on the controls in the desired tab order.
-
Enter the number for the first tab in your selection.
In this example, we selected, in this order: List Price, Discount, and Release date, then entered ‘3’ for the tab order. The tab order would then be: (3) List Price, (4) Discount, and (5) Release date.
How Do I Make the Cursor Jump to a Specific Control?
How Do I Condition an Operation to be Executed only When the End User Tabs from one Field to Another in a Certain Direction?
The Online and Rich Client Samples projects (program TS18 and RTS18)