Vcl.Samples.Spin.TSpinEdit.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 TSpinEdit

Description

Responds to key press events.

KeyDown responds to key press events considering the Key parameter.

Shift indicates which shift keys (SHIFT, CTRL, or ALT) were down when the user moved the mouse.

The Key parameter can be either the Down or Up keyboard key. If the key is Up, then the method calls UpClick; if the key is Down, then the method calls DownClick.

See Also