RAD Studio VCL Reference
|
Implements the responses to a number of standard keystrokes.
procedure DoKey(Key: TDBCtrlGridKey);
__fastcall DoKey(TDBCtrlGridKey Key);
Call DoKey to perform the operation specified by the Key parameter. For example, use DoKey to remap keystrokes from an OnKeyDown event handler.
The actions performed for the different values of Key are given in the following table:
Value |
Action |
gkNull |
Do nothing. |
gkEditMode |
Toggle the EditMode property. |
gkPriorTab |
Move to the previous panel. |
gkNextTab |
Move to the next panel. |
gkLeft |
Move one panel to the left. |
gkRight |
Move one panel to the right. |
gkUp |
Move one panel up. |
gkDown |
Move one panel down. |
gkScrollUp |
Move one panel up. |
gkScrollDown |
Move one panel down. |
gkPageUp | |
gkPageDown | |
gkHome |
Move to the first record in the dataset. |
gkEnd |
Move to the last record in the dataset. |
gkInsert | |
gkAppend | |
gkDelete | |
gkCancel |
Cancel any edits not written to the dataset and set EditMode to false. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|