RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBLookupList.KeyPress Method

Responds when the user presses a key.

Pascal
procedure KeyPress(var Key: Char); override;
C++
virtual __fastcall KeyPress(Char 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. 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!