FMX.Layers3D.TCustomLayer3D.FindTarget

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindTarget(P: TPointF; const Data: TDragObject): IControl; override;

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.Layers3D.pas
FMX.Layers3D.hpp
FMX.Layers3D TCustomLayer3D

Description

Finds the control corresponding to P.

FMX.Layers3D.TCustomLayer3D.FindTarget inherits from FMX.Controls3D.TControl3D.FindTarget. All content below this line refers to FMX.Controls3D.TControl3D.FindTarget.

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.

See Also