From RAD Studio API Documentation
Jump to: navigation, search


property Action: TCustomAction read GetAction write SetAction;


__property Action;


Type Visibility Source Unit Parent
property published
FMX.Gestures TGestureCollectionItem


A TAction to be executed when this gesture is recognized.

FMX.Gestures.TGestureCollectionItem.Action inherits from FMX.Types.TCustomGestureCollectionItem.Action. All content below this line refers to FMX.Types.TCustomGestureCollectionItem.Action.

A TAction to be executed when this gesture is recognized.

The Action property is of type TAction and, when assigned, is called when the gesture is recognized. Create the TAction in the usual way, adding a TActionList to the form and populating it with TAction instances.

The alternative to the Action property is to assign the control's OnGesture event. Like the TAction, the OnGesture event handler is called whenever a gesture is recognized. There is only one OnGesture event handler per control, however. The gesture that has been recognized is passed to that event handler. TActions can be assigned per gesture and per control, or can be shared.

See Also