From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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


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


Type Visibility Source Unit Parent
function protected
FMX.Controls TControl


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