From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function PointInObject(X, Y: Single): Boolean; virtual;


virtual bool __fastcall PointInObject(float X, float Y);


Type Visibility Source Unit Parent
function public
FMX.Controls TControl


Checks whether the point, specified by the absolute coordinates, belongs to the control area.

PointInObject returns True if the specified point belongs to the control area, and False otherwise.

The X and Y are the absolute coordinates (relative to the main form) of the point to be checked (compare with PointInObjectLocal):

  • X is the X coordinate.
  • Y is the Y coordinate.

The points of the control boundary specified by BoundsRect belong to the control and PointInObject returns True for them.

Note: PointInObject simply converts absolute coordinates of the point to local coordinates and calls PointInObjectLocal.

See Also