FMX.Controls.TControl.ObjectAtPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ObjectAtPoint(AScreenPoint: TPointF): IControl; virtual;

C++

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

Properties

Type Visibility Source Unit Parent
function protected
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TControl

Description

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