API:Vcl.DBLookup.TDBLookupList.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.DbLookup.pas Vcl.DBLookup.hpp |
Vcl.DBLookup | TDBLookupList |
Description
Responds when the user presses a key.
Vcl.DBLookup.TDBLookupList.KeyPress inherits from Vcl.DBGrids.TCustomDBGrid.KeyPress. All content below this line refers to Vcl.DBGrids.TCustomDBGrid.KeyPress.
Responds when the user presses a key.
When the user presses a key, first the KeyDown method is called, then the KeyPress method, and finally the KeyUp method when the user releases the key. KeyPress overrides the inherited method to write edits to the dataset when the user presses Return.