FMX.Controls3D.TControl3D.FindTarget
Delphi
function FindTarget(P: TPointF; const Data: TDragObject): IControl; virtual;
C++
virtual Fmx::Types::_di_IControl __fastcall FindTarget(const System::Types::TPointF &P, const Fmx::Types::TDragObject &Data);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | protected | FMX.Controls3D.pas FMX.Controls3D.hpp |
FMX.Controls3D | TControl3D |
Description
Finds the control corresponding to P.
P is the current position of the dragged object.
Data is the dragged object.
FindTarget recursively checks whether P belongs to the current control or any of its children and, if so, returns the control that contains P.
If the target control or any of its children are in designing mode or not visible, FindTarget returns nil.