RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.TKeyPressEvent Type

TKeyPressEvent is the function type for an OnKeyPress event.

Pascal
TKeyPressEvent = procedure (Sender: TObject; var Key: Char) of object;
C++
(Sender: TObject; var Key: Char) ( TKeyPressEvent)();

TKeyPressEvent has the following parameters:

Parameter 
Meaning 
Sender  
The control that generated the event.  
Key  
The key that is pressed.  

 

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