API:FMX.Gestures.TGestureManager.FindGesture
Delphi
function FindGesture(const AControl: TComponent; AGestureID: TGestureID): TCustomGestureCollectionItem; override;
function FindGesture(const AControl: TComponent; const AName: string): TCustomGestureCollectionItem; override;
C++
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindGesture(System::Classes::TComponent* const AControl, Fmx::Types::TGestureID AGestureID)/* overload */;
virtual Fmx::Types::TCustomGestureCollectionItem* __fastcall FindGesture(System::Classes::TComponent* const AControl, const System::UnicodeString AName)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Gestures.pas FMX.Gestures.hpp |
FMX.Gestures | TGestureManager |
Description
Finds the collection item holding a gesture given by an ID and associated with a control.
FMX.Gestures.TGestureManager.FindGesture inherits from FMX.Types.TCustomGestureManager.FindGesture. All content below this line refers to FMX.Types.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.