ComponentOne True DBInput Pro 8.0
MoveOnLRKey Property (TDBText)

 

Reference> TDBText Control> TDBText Control Properties> MoveOnLRKey Property (TDBText)

MoveOnLRKey Property (TDBText)

You can use this property to specify whether the focus should move to the next or the previous control, when pressing the left or the right arrow key, Ctrl+left or the Ctrl+right on the first or the last character of the text in the control. Set the TabIndex and TabStop properties to designate the tab order.

Syntax

control.MoveOnLRKey= value

Read/Write at run time and design time.

Values

Design Time

Run Time

0 - None (Default)

dbiMoveOnLRKeyNone

1 - Left

dbiMoveOnLRKeyLeft

2 - Right

dbiMoveOnLRKeyRight

3 - Both

dbiMoveOnLRKeyBoth

Remarks

If set to 0-None, the control behaves just like an ordinary text box, which disable users moving to the next or the previous control from the two ends (first and last character) of the control.

If set to 1-Left, the control allows you only moving to the previous control from the first character when pressing the left arrow key or the Ctrl+left keys. You are not allowed to move to the next control by pressing the right arrow key or the Ctrl+right keys on the last character.

If set to 2-Right, the control allows you only moving to the next control from the last character when pressing the right arrow key or the Ctrl+right keys. You are not allowed to move to the previous control by pressing the left arrow key or the Ctrl+left keys on the first character.

If you require moving the focus from both ends of the control (first and last character), set the MoveOnLRKey to 3-Both.

When the user moves the cursor to the next / previous control by pressing the Arrow keys or the Ctrl + Arrow keys, the KeyExit event is invoked. The KeyExit event is fired before the LostFocus event.

 

 


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

Product Support Forum  |  Documentation Feedback