RAD Studio VCL Reference
TCheckListBox.KeyPress Method

Responds when the user presses a key.

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

KeyPress is called automatically when the list box receives a key-press message (WM_CHAR). It generates an OnKeyPress event, and then, if the AutoComplete property is true, updates ItemIndex to reflect the next character that the user typed. 

The Key parameter is the character represented by the key that is pressed, not a Windows virtual key code. 


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