Vcl.Grids.TCustomGrid.KeyDown

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure KeyDown(var Key: Word; Shift: TShiftState); override;

C++

DYNAMIC void __fastcall KeyDown(System::Word &Key, System::Classes::TShiftState Shift);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

説明

ユーザーがキーを押したときに特殊な処理を実行します。

KeyDown は、OnKeyDown イベントを生成した後に、CanGridAcceptKey を呼び出して、問題のあるキーの組み合わせを排除します。KeyDown は、移動キーの組み合わせに応じて適切なセルに移動します。F2 キーが押された場合は、EditorMode プロパティを true に設定します。

関連項目