Sign in Join
FPDoc Onlineexperiment

TKeyPressEvent procedure type

In unit Controls

Specifies an event handler for key press events.

Declaration

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

Arguments

Sender

TObject for the event notification.

Key

Character value for the key press in the event notification.

Description

TKeyPressEvent is an object procedure type that defines an event handler for key press events.

TKeyPressEvent is the type used to implement the OnKeyPress event handler in TWinControl. Applications must implement an object procedure using the signature for the event handler, and assign it to the property to respond to the event notification.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.