Vcl.Controls.TCustomGestureManager.FindGesture
Delphi
function FindGesture(AControl: TControl; AGestureID: TGestureID): TCustomGestureCollectionItem; overload; virtual; abstract;
function FindGesture(AControl: TControl; const AName: string): TCustomGestureCollectionItem; overload; virtual; abstract;
C++
virtual TCustomGestureCollectionItem* __fastcall FindGesture(TControl* AControl, TGestureID AGestureID) = 0 /* overload */;
virtual TCustomGestureCollectionItem* __fastcall FindGesture(TControl* AControl, const System::UnicodeString AName) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TCustomGestureManager |
Description
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.