Vcl.DBCtrls.TDBComboBox.KeyPress

From RAD Studio API Documentation
Jump to: navigation, search

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.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBComboBox

Description

Responds to WM_CHAR messages sent to the combo box.

Vcl.DBCtrls.TDBComboBox.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.

See Also