Show: Delphi C++
Display Preferences

FMX.Forms.TCommonCustomForm.ObjectAtPoint

From XE3 API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
function public
FMX.Forms.pas
FMX.Forms.hpp
FMX.Forms TCommonCustomForm

Description

Returns the object located at the given coordinates.

ObjectAtPoint iterates through all the children of this form and returns the component situated at the coordinates given through the P TPointF parameter.

If the object at the specified coordinates was not found, or is not an IControl, or its state is csDesigning, ObjectAtPoint returns nil. Otherwise the object is returned as IControl.

See Also

Personal tools
Translations