ComponentOne True DBInput Pro 8.0
KeyExit Event (TDBDate)

 

Reference> TDBDate Control> TDBDate Control Events> KeyExit Event (TDBDate)

KeyExit Event (TDBDate)

The KeyExit event occurs when the focus moves to the next / previous control in response to arrow keys (Left, Right),  Ctrl + arrow keys (Left, Right), Tab / Shift + Tab and keys assigned to the NextCtrl / PrevCtrl property of the Key object.

Syntax

control_KeyExit (Action As dbiKeyExitConst)

Arguments

action is a dbiKeyExitConst that indicates the action that generated the event.

The possible values for action are as follows:

0

User pressed the Tab key.

1

User pressed the Shift+Tab key.

2

User pressed the key assigned to the NextCtrl property of the Key object.

3

User pressed the key assigned to the PrevCtrl property of the Key object.

4

User pressed the Right arrow key.

5

User pressed the Left arrow key.

6

User pressed the Ctrl+Right arrow key.

7

User pressed the Ctrl+Left arrow key.

emarks

The user can press the arrow keys and the Ctrl + Arrow keys to move the focus through the tab ordering controls as determined by the TabIndex property, only when the MoveOnLRKey property is set to 1- Left, 2-Right or 3-Both. The Left / Ctrl+Left arrow keys are used to move the cursor to the previous control from the first character of the control and the Right / Ctrl+Right arrow keys to the next control from the last character of the control.

The KeyExit event occurs when the user performs one of the following actions:

·      Pressing the Left / Ctrl + Left key when the cursor is positioned on the first character in the control.

·      Pressing the Right / Ctrl + Right key when the cursor is positioned on the last character in the control.

·      Pressing the keys assigned to the NextCtrl or the PrevCtrl properties of the Key object to move the focus to the next / previous tab ordering control.

·      Pressing the Tab / Shift + Tab keys to move the focus to the next / previous tab ordering control, either when TabAction property set to 0-Control Navigation or 1-Field Navigation.

Notes

The KeyExit event is fired before the LostFocus event.

This event was provided for navigating between multiple controls using keyboard. Please avoid setting focus to an object within this event. It may cause unexpected behavior.

See Also

MoveOnLRKey Property (TDBDate)

TabAction Property (TDBDate)

NextCtrl Property (Key)

PrevCtrl Property (Key)

 

 


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

Product Support Forum  |  Documentation Feedback