RectControl.TabIndex

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aRectControl.TabIndex = newIntegerValue
or
IntegerValue = aRectControl.TabIndex

New in 2008r1

Supported for all project types and targets.

The RectControl's position in the Tab Order. It is 0-based. A TabIndex of 0 is the first RectControl to get the focus.

Notes

On the Mac you need Full Keyboard Access turned on in System Preferences (Keyboard->Shortcuts) in order to manually set focus to non-text controls.

Sample Code

This example sets the control's TabIndex.

Me.TabIndex = 2