PtInRect function
Check whether a point is inside a rectangle.
Declaration
function PtInRect(const Rect: TRect; const p: TPoint): BooleanDescription
PtInRect returns
True if
p is located
inside
Rect, and
False if it is located outside the
rectangle.
Note that the bottom, right edges are not considered
part of the rectangle, therefor a point located on one of these edges will
not be considered part of the rectangle, meaning that for a record
(10,10,100,100) the point (90,100) will not be considered part of the
record, but
90,10 will be.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
