ComponentOne True DBInput Pro 8.0
TabAction Property (TDBMask)

 

Reference> TDBMask Control> TDBMask Control Properties> TabAction Property (TDBMask)

TabAction Property (TDBMask)

This property allows you to control the behavior of the tab key.

Syntax

control.TabAction= value

Read/Write at run time and design time.

Values

Design Time

Run Time

0 - Control (Default)

dbiTabControl

1 - Field

dbiTabField

Remarks

If set to 0-Control, Tab/Shift +Tab keys are used to move to the next/previous control just like in the standard Windows applications. However, if set to 1-Field, the Tab/Shift + Tab keys will be used to move between the fields before moving to the next/previous control.

When setting the control for free format entry, all text will be treated as one field and both the 0-Control and the 1-Field navigation will move the focus to the next control.

When moving away from a field or selected fields that are half entered, by hitting the Tab/Shift+Tab or the keys assigned to the Key object properties (NextField / PrevField, NextCtrl / PrevCtrl), the incomplete values will be automatically rounded to the closes value. For example, with the cursor placed in the following position, "1998/1|_/31", hitting the Tab/Shift+Tab key will cause the month field to be rounded, displaying "01". "1998/0|_/31" will also be rounded to "01". Note that moving the focus away from the control will also cause the incomplete fields to be rounded accordingly.

When the user moves the cursor to the next / previous control by pressing the Tab / Shift + Tab keys or the keys assigned to the NextCtrl / PrevCtrl properties of the Key object, the KeyExit event is invoked. The KeyExit event is fired before the LostFocus event.

See Also

CursorPosition Property (TDBDate)

CursorPosition Property (TDBMask)

CursorPosition Property (TDBTime)

HighlightText Property (TDBDate)

NextField Property (Key)

NextCtrl Property (Key)

PrevField Property (Key)

PrevCtrl Property (Key)

KeyExit Event (TDBMask)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback