API: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.
Vcl.Touch.GestureMgr.TGestureManager.FindGesture inherits from Vcl.Controls.TCustomGestureManager.FindGesture. All content below this line refers to Vcl.Controls.TCustomGestureManager.FindGesture.
Finds the collection item holding a gesture given by an ID and associated with a control.
Override FindGesture in descending classes to implement a proper lookup of collection items holding gestures given by an ID and associated with a control. FindGesture is expected to return a TCustomGestureCollectionItem instance if the gesture was found, and nil if the ID was not found or the control does not have a gesture with that ID associated with it.