API:Vcl.ExtCtrls.TCustomColorBox.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.ExtCtrls.pas Vcl.ExtCtrls.hpp |
Vcl.ExtCtrls | TCustomColorBox |
Description
Responds to WM_CHAR messages sent to the combo box.
Vcl.ExtCtrls.TCustomColorBox.KeyPress inherits from Vcl.StdCtrls.TCustomComboBox.KeyPress. All content below this line refers to Vcl.StdCtrls.TCustomComboBox.KeyPress.
Responds to WM_CHAR messages sent to the combo box.
KeyPress processes standard keystroke messages for the combo box control. If the KeyPress method does not handle the keystroke, it calls the inherited method, which generates an OnKeyPress event.
Key is the character represented by the key that was pressed. If the KeyPress method changes Key to 0, no further processing occurs for the keystroke.