TabStop Property

Purpose

Returns or sets a value indicating whether a user can use the TAB key to give the focus to an object.

Syntax

object.TabStop [= boolean]

object:Ocx object

Description

Designates the object as a tab stop (default). When set to False the object is bypassed when the user is tabbing, although the object still holds its place in the actual tab order, as determined by Ocx View window.

Example

Ocx Command cmd1 = "Tab Stop", 10, 10, 120, 22

Ocx Command cmd2 = "No Tab Stop", 140, 10, 120, 22 : .TabStop = False

Ocx Command cmd3 = "Tab Stop Again", 270, 10, 120, 22

Ocx Command cmd4 = "Close Window"#10"No Tab Stop", 140, 50, 120, 40 : .TabStop = False : .WinStyle = .WinStyle | BS_MULTILINE

Do : Sleep : Until Me Is Nothing

 

Sub cmd4_Click

Me.Close

EndSub

See Also

Form

{Created by Sjouke Hamstra; Last updated: 24/10/2014 by James Gaite}