procedure TForm1.Button1Click(Sender: TObject); begin image2.top:=image2.top-10; if intersectrect(overlay, image2.BoundsRect, image3.BoundsRect) then ShowMessage