Vcl.Touch.GestureMgr.TGestureManager.FindGesture
Delphi
function FindGesture(AControl: TControl; AGestureID: TGestureID): TCustomGestureCollectionItem; override;
function FindGesture(AControl: TControl; const AName: string): TCustomGestureCollectionItem; override;
C++
virtual Vcl::Controls::TCustomGestureCollectionItem* __fastcall FindGesture(Vcl::Controls::TControl* AControl, Vcl::Controls::TGestureID AGestureID)/* overload */;
virtual Vcl::Controls::TCustomGestureCollectionItem* __fastcall FindGesture(Vcl::Controls::TControl* AControl, const System::UnicodeString AName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Touch.GestureMgr.pas Vcl.Touch.GestureMgr.hpp |
Vcl.Touch.GestureMgr | TGestureManager |
Description
Finds the collection item holding a gesture given by an ID and associated with a control.
FindGesture has two forms. For the first one, the search is performed after a gesture ID given as a TGestureID, while for the second form the search is performed after the name given as a string. In both forms, the methods return the gesture as a TCustomGestureCollectionItem if successful, or nil otherwise.