IntersectRect lazarus / 39-Graphics ---------------------------------------------------------------------- T-bear · 2011-05-28 17:08 Hi, In wich Unit is the function Intersectrect (http://lazarus- ccr.sourceforge.net/docs/rtl/types/intersectrect.html) Because when i use Intersectrect, i get Identifier not found "Intersectrect". Thanks! ---------------------------------------------------------------------- typo · 2011-05-28 17:12 Unit Types. ---------------------------------------------------------------------- T-bear · 2011-05-28 17:13 And what is the third/first rectangle good for? ---------------------------------------------------------------------- typo · 2011-05-28 17:24 I don't understand. IntersectRect returns the intersection of the 2 rectangles R1 and R2 in Rect. It returns True if the 2 rectangles have an intersection, otherwise False is returned, and Rect is filled with zero. ---------------------------------------------------------------------- Leledumbo · 2011-05-29 13:15 QuoteAnd what is the third/first rectangle good for?The explanation is clear. 2nd and 3rd parameter is intersected and the resulting intersection rect is placed in 1st parameter.