Vcl.Touch.GestureMgr.TGestureManager.RegisterGesture

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function RegisterGesture(AGesture: TCustomGestureCollectionItem): TGestureID; static;

C++

static Vcl::Controls::TGestureID __fastcall RegisterGesture(Vcl::Controls::TCustomGestureCollectionItem* AGesture);

Properties

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

Description

Method used for registering a gesture.

RegisterGesture is used for registering a gesture. The gesture is specified by the AGesture parameter. Also, all the controls managed by the TGestureManager class will be notified of the newly registered gesture.

Note: In case of too many registered gestures, an STooManyRegisteredGestures exception is raised.

See Also