Vcl.Grids.TCustomGrid.KeyPress
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 | TCustomGrid |
説明
キーが押された時点で特殊な処理を提供します。
KeyPress メソッドは,KeyDown メソッドが呼び出されてからユーザーがキーを離すまでの間に自動的に呼び出されます。
OnKeyPress イベントを生成すると,KeyPress は,ユーザーが Enter キーを押したときの EditorMode プロパティを切り替えます。