FMX.Controls.TControl.Click
Delphi
procedure Click; virtual;
C++
virtual void __fastcall Click();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TControl |
Description
Responds to user clicks, key pressing, and input on touch devices (gestures).
Click is an event handler for the OnClick event. It is automatically called when the left mouse button is pressed and released with the pointer over the control. Click also can be called in DialogKey and other methods handling an input from keyboards and touch devices.
Call Click in applications to simulate an OnClick mouse event.
If EnableExecuteAction is True
and the OnClick event handler is not assigned (or is equal to Action.OnExecute), then Click executes the assigned Action, otherwise executes the OnClick event handler.
See Also
- FMX.Controls.TControl.DblClick
- FMX.Controls.TControl.OnClick
- FMX.Controls.TControl.OnDblClick
- FMX.Controls.TControl.HitTest
- FMX.ActnList.TAction.OnExecute
- FMX.Types.TFmxObject.Action
- FMX.Controls.TControl.EnableExecuteAction