Show: Delphi C++
Display Preferences

FMX.Controls.TControl.PointInObject

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance