Sign in Join
FPDoc Onlineexperiment

TCDButton.OnKeyUp property

Member of TCDButtonpublishedIn unit CustomDrawnControls

Declaration

pascal
property OnKeyUp: ;

Description

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

Event handler signalled when a key up event has occurred for the control.

OnKeyUp is a TKeyEvent property with the event handler signalled when a key up event has occurred in the control. OnKeyUp is signalled (when assigned) from the KeyUp method. It occurs when the CN_KEYUP or CN_SYSKEYUP notifications are handled for the control.

The Sender argument contains the control for the key event. It must be cast to TControl or TwinControl type to access properties or methods specific to the descendent classes.

The Key argument contains the virtual keyboard constant for the key event (like VK_F1 or VK_NUMPAD5).

Shift is a set type which contains the modifiers for the key down event like: Ctrl, Shift, Alt, or Meta.

Unlike OnKeyDown, this event occurs only once for auto-repeated keys. For more information, see OnKeyDown.

Use OnKeyDown to perform actions needed when a key down event for a non-printable key is received for the control.

Use OnKeyPress to handle a key press for printable characters entered into the control.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.