RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.KeyPress Method

Provides special processing when the user presses a key.

Pascal
procedure KeyPress(var Key: Char); override;
C++
virtual __fastcall KeyPress(Char Key);

KeyPress is called automatically after the KeyDown method, but before the user releases the key. 

After generating an OnKeyPress event, KeyPress toggles the EditorMode property when the user presses the Enter key. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!