SftMask/OCX 6.5

SftMask.TabAdvance Property

Softel vdm, Inc.

Defines whether the Tab key advances to the next input field in the edit control.

Syntax       

Get

VB.NET

Boolean = object.TabAdvance  As Boolean

VB

Boolean = object.TabAdvance  As Boolean

C#.NET

bool Boolean = object.TabAdvance;

VC++

VARIANT_BOOL Boolean = object->TabAdvance;
VARIANT_BOOL Boolean = object->GetTabAdvance();

C

HRESULT object->get_TabAdvance(VARIANT_BOOL* Boolean);

Delphi

Boolean := object.TabAdvance   : WordBool;

Put

VB.NET

object.TabAdvance = Boolean  As Boolean

VB

object.TabAdvance = Boolean  As Boolean

C#.NET

bool object.TabAdvance = Boolean;

VC++

VARIANT_BOOL object->TabAdvance = Boolean;
void object->PutTabAdvance(VARIANT_BOOL Boolean);

C

HRESULT object->put_TabAdvance(VARIANT_BOOL Boolean);

Delphi

object.TabAdvance := Boolean   : WordBool;

object

A SftMask object.

Boolean

Defines whether the Tab key advances to the next input field in the edit control.

Boolean

Description

True

Enables tabbing within the control.

False

Disables tabbing within the control.

Comments

The TabAdvance property defines whether the Tab key advances to the next input field in the edit control.

Depending on the input mask, it may be desirable to allow the user to tab between different input fields within one Masked Edit control. For example, when entering dates, the user may wish to tab between Month, Day and Year fields. The TabAdvance property can be used to enable this feature.

If TabAdvance is set to True, the Tab key will advance or back up (Shift+Tab) the caret location to the next input field (see Keyboard & Mouse Interface). If the caret location is already at the end (or beginning) of the input data, the input focus will move to the next (or previous) control on the form instead.

The TabAdvance property has no effect if the control is used as a simple edit control (without Mask).

The TabAdvanceLast property can be used to control whether the Tab key advances to the last position in the control or to the next control instead.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com