Vcl.Samples.Spin.TSpinButton.KeyDown

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure KeyDown(var Key: Word; Shift: TShiftState); override;

C++

DYNAMIC void __fastcall KeyDown(System::Word &Key, System::Classes::TShiftState Shift);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Samples.Spin.pas
Vcl.Samples.Spin.hpp
Vcl.Samples.Spin TSpinButton

Description

Responds to keypress events.

The KeyDown responds to keypress events.

Shift indicates which shift keys (SHIFT, CTRL, or ALT) are combined with the keystroke.

The Key parameter is one of the following keyboard keys: Space, Down, or Up.

If Key is Down, the OnDownClick event is handled, if Up - OnUpClick, and if Space - the click event for the focused button.

See Also