Vcl.Touch.GestureMgr.TGestureCollectionItem.Action
Delphi
property Action;
C++
__property Action;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.Touch.GestureMgr.pas Vcl.Touch.GestureMgr.hpp |
Vcl.Touch.GestureMgr | TGestureCollectionItem |
Description
A TAction to be executed when this gesture is recognized.
Vcl.Touch.GestureMgr.TGestureCollectionItem.Action inherits from Vcl.Controls.TCustomGestureCollectionItem.Action. All content below this line refers to Vcl.Controls.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.