FMX.Forms.TCommonCustomForm.ObjectAtPoint
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 | 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 AScreenPoint
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.