FMX.TreeView.TCustomTreeView.ObjectAtPoint

From RAD Studio API Documentation

Delphi

function ObjectAtPoint(P: TPointF): IControl; override;

C++

virtual Fmx::Types::_di_IControl __fastcall ObjectAtPoint(const System::Types::TPointF &P);

Properties

Type Visibility Source Unit Parent
function protected
FMX.TreeView.pas
FMX.TreeView.hpp
FMX.TreeView TCustomTreeView

Description

Returns the control in which a specified point can be found. {{#multireplace:FMX.TreeView.TCustomTreeView.ObjectAtPoint|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:FMX.Controls.TControl.ObjectAtPoint|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:FMX.Controls.TControl.ObjectAtPoint|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Returns the control in which a specified point can be found.

P is the specified point in the object.

ObjectAtPoint returns the control in which the P point is found. To start searching within the current control, the control must be visible and enabled. If P is within a child of the control and the child is also a control, the search continues inside the child.

If P is inside the control (not within a child) and the control can be hit, then ObjectAtPoint returns the control.

ObjectAtPoint is used internally.

See Also