Vcl.Samples.Spin.TSpinButton.KeyDown

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.Samples.Spin.pas
Vcl.Samples.Spin.hpp
Vcl.Samples.Spin TSpinButton


説明

キー入力イベントに対応します。

KeyDown は、キー入力イベントに対応します。

Shift は、どのシフト キー(SHIFT、CTRL、ALT)が、キーボード キーと一緒に押されたかを示します。

Key パラメータは、次のキーボード キーのうちの 1 つになります: Space、Down、Up。

Key が Down だった場合 OnDownClick イベントが、Up の場合には OnUpClick が、そして Space の場合には、フォーカスされているボタンのためのクリック イベントが処理されます。

関連項目