Vcl.WinXCtrls.TSearchBox.KeyPress

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

procedure KeyPress(var Key: Char); override;

C++

DYNAMIC void __fastcall KeyPress(System::WideChar &Key);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
procedure
function
protected
Vcl.WinXCtrls.pas
Vcl.WinXCtrls.hpp
Vcl.WinXCtrls TSearchBox


Beschreibung

Behandelt die Aktion Tastendrück und überprüft ob Key Enter ist.

Wenn Key Enter ist und SearchIndicator sbiText ist, ruft KeyPress InvokeSearch auf und unterdrückt die Taste.

Hinweis: Der Parameter Key ist das Zeichen zur gedrückten Taste, nicht der virtuelle Windows-Tastencode.

Siehe auch