Vcl.WinXCtrls.TSearchBox.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.WinXCtrls.pas
Vcl.WinXCtrls.hpp
Vcl.WinXCtrls TSearchBox

Description

Handles the key press action and checks whether the Key is Enter.

If the Key is Enter and the SearchIndicator is sbiText, KeyPress calls InvokeSearch and suppresses the key.

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

See Also