Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TKeyPressEvent

Specifies an event handler for key press events.

Declaration

Source position: controls.pp line 414

type 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

TWinControl.OnKeyPress

  

Handler for a character entered by the user.



CT Web help

CodeTyphon Studio