[Overview][Types][Procedures and functions][Variables][Index] Reference for unit 'LCLIntf' (#lcl)

PtInRect

Checks whether a Point is within a Rect.

Declaration

Source position: winapih.inc line 338

function PtInRect(

  const Rect: TRect;

  const Point: TPoint

):Boolean;

Function result

True when Point is within Rect.

Description

Top and Left side are part of the rectangle, but Bottom and Right side are outside.