FMX.Layers3D.TCustomLayer3D.FindTarget

From RAD Studio API Documentation

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. {{#multireplace:FMX.Layers3D.TCustomLayer3D.FindTarget|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FMX.Controls3D.TControl3D.FindTarget|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FMX.Controls3D.TControl3D.FindTarget|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

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