FMX.Controls.TControl.OnGesture

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnGesture: TGestureEvent read FOnGesture write FOnGesture;

C++

__property Fmx::Types::TGestureEvent OnGesture = {read=FOnGesture, write=FOnGesture};

Properties

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

Description

Occurs when you perform a gesture associated with this control.

Write an event handler for OnGesture to perform custom processing for gesture events. OnGesture is fired on controls that subscribed for specific gestures using the TTouchManager class. If your code did process the gesture event, do not forget to set the Handled parameter to True so that the event is not propagated further.

If no event handler is associated with the control, the default DoGesture method is executed performing its own processing for the event.

OnGesture is an event handler of type FMX.Types.TGestureEvent.

See Also

Code Examples