API:Vcl.Outline.TCustomOutline.KeyPress
Delphi
procedure KeyPress(var Key: Char); override;
C++
DYNAMIC void __fastcall KeyPress(System::WideChar &Key);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
procedure function |
protected | Vcl.Outline.pas Vcl.Outline.hpp |
Vcl.Outline | TCustomOutline |
説明
キーが押された時点で特殊な処理を提供します。
Vcl.Outline.TCustomOutline.KeyPress は Vcl.Grids.TCustomGrid.KeyPress を継承しています。以下の内容はすべて Vcl.Grids.TCustomGrid.KeyPress を参照しています。
キーが押された時点で特殊な処理を提供します。
KeyPress メソッドは,KeyDown メソッドが呼び出されてからユーザーがキーを離すまでの間に自動的に呼び出されます。
OnKeyPress イベントを生成すると,KeyPress は,ユーザーが Enter キーを押したときの EditorMode プロパティを切り替えます。