Vcl.Controls.TKeyPressEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TKeyPressEvent = procedure(Sender: TObject; var Key: Char) of object;

C++

typedef void __fastcall (__closure *TKeyPressEvent)(System::TObject* Sender, System::WideChar &Key);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls Vcl.Controls

Description

TKeyPressEvent is the function type for an OnKeyPress event.

TKeyPressEvent has the following parameters:



Parameter Meaning

Sender

The control that generated the event.

Key

The key that is pressed.



See Also