[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 340

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.