[Lazarus] ptInRect question

dmitry boyarintsev skalogryz.lists at gmail.com
Thu Jan 29 23:25:51 CET 2009


AFAIK, Delphi compat.Here's the delphi code from Types unit.

function PtInRect(const Rect: TRect; const P: TPoint): Boolean;
begin
  Result := (P.X >= Rect.Left) and (P.X < Rect.Right) and (P.Y >= Rect.Top)
    and (P.Y < Rect.Bottom);
end;



More information about the Lazarus mailing list