Show: Delphi C++
Display Preferences

FMX.Controls.TControl.Click

From RAD Studio API Documentation
Jump to: navigation, search

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

Application Samples

Personal tools
In Other Languages
Previous Versions
Assistance