API:Vcl.Touch.GestureMgr.TGestureManager.AddRecordedGesture

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AddRecordedGesture(Item: TCustomGestureCollectionItem): TGestureID; override;

C++

virtual Vcl::Controls::TGestureID __fastcall AddRecordedGesture(Vcl::Controls::TCustomGestureCollectionItem* Item)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
Vcl.Touch.GestureMgr.pas
Vcl.Touch.GestureMgr.hpp
Vcl.Touch.GestureMgr TGestureManager

Description

Adds a newly recorded gesture to the gesture manager.

Vcl.Touch.GestureMgr.TGestureManager.AddRecordedGesture inherits from Vcl.Controls.TCustomGestureManager.AddRecordedGesture. All content below this line refers to Vcl.Controls.TCustomGestureManager.AddRecordedGesture.

Adds a newly recorded gesture to the gesture manager.

Override AddRecordedGesture in descending classes to implement support for adding newly recorded gestures to the gesture manager component.

The first variant of the AddRecordedGesture method actually creates a new TCustomGestureCollectionItem instance, adds it into the internal list, and returns it to the caller.

The second variant of the AddRecordedGesture method expects an already created TCustomGestureCollectionItem item.

See Also