ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Control accessible via the Tab key
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The TABOrder property gets and sets the position of a control in the tab order of a window.
Remarks:
  • The tab order of window controls is the order in which the controls gain focus when the user presses the Tab key.
  • To view the tab order of all the controls in a window, on the "Window" tab, in the "Order" group, expand "Tab order" and select "Edit".
  • To set the tab order, on the "Window" tab, in the "Order" group, expand "Tab order" and select "Edit". Use the arrows on the right.
Example
// Tab order of the "EDT_CustomerName" control
ResTabOrder = EDT_CustomerName.TABOrder
Syntax

Getting the position of a control in the tab order Hide the details

<Result> = <Control to use>.TABOrder
<Result>: Integer
  • Position of the specified control in the tab order,
  • -1 if the specified control cannot be accessed via the [Tab] key.
<Control to use>: Control name
Name of the control to be used.

Setting the position of a control in the tab order Hide the details

<Control to use>.TABOrder = <New position>
<Control to use>: Control name
Name of the control to be used.
<New position>: Integer
Position of the specified control in the tab order. This position must be between 1 (first control) and the number of controls in the window. If the new position has already been assigned, the position of the following controls will be moved.
Remarks

Control accessible via the Tab key

To make a control accessible via the Tab key, go to the "UI" tab of the control description, and then in "TAB key action" select "Accessible by TAB".
By default, the "Accessible by TAB" option is selected when a control is created.
All controls accessible via the Tab key are automatically included in window tab order. By default, the tab order is the order in which the controls are created in the window.

Limitations

The TABOrder property cannot be used on:
  • a window,
  • a Static, Shape or Image control,
  • an option in a Radio Button or Check Box control,
  • a row in a List Box, ListView, Combo Box or Table control,
  • a cell in a Table control,
  • a column in a Table control,
  • a menu,
  • a tab pane,
  • a group of controls,
  • an element in a TreeView control.
Java The TABOrder property can only be used with the following elements:
  • Button control.
  • Edit control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Table control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/10/2024

Send a report | Local help