FMX.Controls.TControl.OnKeyDown

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property OnKeyDown: TKeyEvent read FOnKeyDown write FOnKeyDown;

C++

__property Fmx::Types::TKeyEvent OnKeyDown = {read=FOnKeyDown, write=FOnKeyDown};

Properties

Type Visibility Source Unit Parent
event public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

Occurs when a key is pressed while the control has focus.

OnKeyDown is called from KeyDown methods of GUI components, for example, of controls and forms.

Write an event handler for OnKeyDown to specify what happens when a control or a form has the input focus and a key is pressed.

See Also