API:Vcl.DBCtrls.TDBRichEdit.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.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBRichEdit |
Description
Ensures that return characters are not entered into the text when WantReturns is false.
Vcl.DBCtrls.TDBRichEdit.KeyPress inherits from Vcl.StdCtrls.TCustomMemo.KeyPress. All content below this line refers to Vcl.StdCtrls.TCustomMemo.KeyPress.
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.