Compartir a través de


TabStop Property

Specifies whether a user can use the TAB key to move the focus to an object. Available at design time and run time.

 [Object.]Control.TabStop[ = lExpr]

Return Value

  • lExpr
    Specifies whether an object is included in the tab order. The settings for the TabStop property are as follows:

    Setting

    Description

    True (.T.)

    (Default) The control or form is included in the tab order, as determined by the TabIndex property.

    False (.F.)

    The object is ignored in the tab order. For a control, when a user presses the TAB key, the focus skips a control that has its TabStop property set to false (.F.). For a form, when a user presses the TABkey on the last control on a form and the next form in the tab order has its TabStop property set to false (.F.), the focus moves to the first control on the same form. The focus does not move to the next form in the tab order.

Remarks

Applies To: CheckBox | ComboBox | CommandButton | Container Object | Control Object | EditBox | Form | Grid | ListBox | OLE Bound Control | OLE Container Control | OptionButton | Page | PageFrame | _SCREEN | Spinner | TextBox

If TabStop property is set to false (.F.) for a control or form, the control or form is skipped when the TAB key is used to move through the tab order, but it can still receive the focus when the mouse is used.

Note

If you want to remove a control within a Column control from the Tab order, set the Enabled property for the Column to False (.F.).

See Also

Reference

TabIndex Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)