Vcl.StdCtrls.TCustomMemo.KeyPress
Delphi
procedure KeyPress(var Key: Char); override;
C++
DYNAMIC void __fastcall KeyPress(System::WideChar &Key);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomMemo |
Description
Ensures that return characters are not entered into the text when WantReturns is false.
KeyPress is called automatically when the user presses a key. After calling the inherited KeyPress, which calls the OnKeyPress event handler, KeyPress discards return characters when WantReturns is false.