Why do labels and frames have the Tab Index property in VB6?

Does anyone know why labels and frames (and possibly other controls) have the TabIndex property in VB6? Is it used for this; Is there any GUI programming feature that I have to include in my applications (that I am blissfully unaware of)?

+6
source share
2 answers

To confirm what Cody said in the comments. The VB6 introductory entry for TabIndex reads:

Controls that cannot receive focus (frame and shortcut controls) remain in tab order but are skipped during tab.

but

If you press the access key for a Frame or Label control, the focus moves to the next control in the tab order that the focus can receive.

+5
source

TabIndex is a property used to determine the sequence of focused controls when the user presses the TAB key.
If the control with TabIndex=5 focused and the user presses TAB, the control with TabIndex=6 will be focused.

+4
source

Source: https://habr.com/ru/post/889003/


All Articles