Path: utzoo!mnetor!uunet!husc6!bbn!bbn.com!franco From: franco@bbn.com (Frank A. Lonigro) Newsgroups: comp.sys.mac.programmer Subject: Draging Icons, the solution found... Message-ID: <23590@bbn.COM> Date: 19 Apr 88 00:58:28 GMT Sender: news@bbn.COM Lines: 24 I've discovered what the problem is. It turns out that I needed to re-read the documentation on the DragGreyRgn() function. It seems that depending on where you click the mouse down in the region, there is an offset amount that the Icon can hang out of limitRect. So, the limitR and slopeR parameters for this function do work properly. As far as the return value goes, if the mouse is let up outside of slopeR, then the 0x8000 return value is in the high-order word. So the proper test would be: upMouse = DragGreyRgn(.......); if (HiWord(upMouse) != 0x8000) { /* draw the region in the new place */ . . } else /* leave it where it was */ Thanks for listening, -franco franco@bbn.com franco%bbn.com@relay.cs.net ...!harvard!bbn!franco