ArcGIS SDK  

Add-Ins

ESRI Align Controls with Tab Index

When hosting VB user interfaces within applications not created by VB, the Tab index of forms may not be honored. To correct this problem, the controls within a form should be created in their Tab index order.

This add-in ensures that the creation of controls in a form occurs in the same order as the control’s Tab index. To access the add-in, click the Add-Ins menu and click ESRI Align Controls with Tab Index. The add-in displays the message box on the left to let you select the modules within a project that have a user interface whose controls you want to align. You can bypass the dialog box by pressing the Shift and Ctrl keys when clicking the ESRI Align Controls with Tab Index menu item on the Add-Ins menu.

ESRI Align Controls with Tab Index dialog box

To achieve the correct creation sequence, the z order of the controls are altered to match the Tab index. Therefore, if you have controls containing controls, you must ensure that you have the Tab index correct, otherwise the controls may "disappear" behind other controls.

In some cases, it may not be possible to change the creation sequence because of the z ordering restriction. In these cases, you must write code within the load sequence of the user interface component that sets the tab sequence.

How to set up the ESRI VB6 add-ins