Show: Delphi C++
Display Preferences

FMX.Controls.TCustomTrack.KeyDown

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure KeyDown(var Key: Word; var KeyChar: System.WideChar; Shift: TShiftState); override;

C++

virtual void __fastcall KeyDown(System::Word &Key, System::WideChar &KeyChar, System::Classes::TShiftState Shift);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TCustomTrack

Description

OnKeyDown event dispatcher.

FMX.Controls.TCustomTrack.KeyDown inherits from FMX.Types.TControl.KeyDown. All content below this line refers to FMX.Types.TControl.KeyDown.

OnKeyDown event dispatcher.

Key specifies the key on the keyboard.

KeyChar specifies the character code.

Shift indicates which shift keys (SHIFT, CTRL, or ALT) were down when the specified key was pressed with the control in focus.

A control calls KeyDown in response to any key-down message, decoding the message parameters into the key code, character code, and shift state, which it passes in the Key, KeyChar, and Shift parameters, respectively.

Override the protected KeyDown method to provide other responses when a key is down while the control has keyboard focus.

See Also

Personal tools
Previous Versions
Translations