Vcl.Grids.TInplaceEdit.KeyPress

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

Delphi

procedure KeyPress(var Key: Char); override;

C++

DYNAMIC void __fastcall KeyPress(System::WideChar &Key);

プロパティ

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

説明

キーを入力した場合に応答します。

KeyPress メソッドはグリッドにキー入力を処理させ,グリッドが処理できないキー入力だけを処理します。キー入力の処理後にグリッドが編集モードにない場合,KeyPress メソッドはそのキー入力を破棄します。KeyPress メソッドは〔Enter〕を処理し,継承メソッドを呼び出してほかの処理されていないすべてのキー入力を処理します。

〔Enter〕を押すと,KeyPress メソッドはすべてのテキストを選択し,すでに選択されている場合は,すべてのテキストの選択を解除します。

関連項目