Sign in Join
FPDoc Onlineexperiment

TCDButton.OnKeyPress property

Member of TCDButtonpublishedIn unit CustomDrawnControls

Declaration

pascal
property OnKeyPress:;

Description

Not described here; this is what TWinControl.OnKeyPress says of it:

Event handler signalled for character data entered by the user.

This handler only receives characters, not control or other special key codes. Control keys should be handled by an OnKeyDown handler instead. The handler can also be used to convert the character into a different one.

We recommend using OnUTF8KeyPress to prevent data loss. Characters are converted from UTF-8 to the system encoding in OnKeyPressEvent, with possible loss of characters outside the ANSI codepage.

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