Vcl.DBCGrids.TDBCtrlGrid.KeyDown
Delphi
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
C++
DYNAMIC void __fastcall KeyDown(System::Word &Key, System::Classes::TShiftState Shift);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | Vcl.DbCGrids.pas Vcl.DBCGrids.hpp |
Vcl.DBCGrids | TDBCtrlGrid |
説明
キーが押されたときに特殊な処理を実行します。
OnKeyDown イベント ハンドラを呼び出した後で、KeyDown は、Key パラメータと Shift パラメータの組み合わせを論理的なキー コードに変換し、DoKey を呼び出して適切なアクションを実行します。
KeyDown は以下のような変換を行います。
Key と Shift の値 | キー コード |
---|---|
LeftArrow |
gkLeft |
RightArrow |
gkRight |
UpArrow |
gkUp |
DownArrow |
gkDown |
PageUp |
gkPageUp |
PageDown |
gkPageDown |
Home |
gkHome |
End |
gkEnd |
Return |
gkEditMode |
F2 |
gkEditMode |
Insert |
gkAppend |
Ctrl+Insert |
gkInsert |
Ctrl+Delete |
gkDelete |
Escape |
gkCancel |
その他のすべてのキー |
gkNull |
関連項目