Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!uakari.primate.wisc.edu!dogie.macc.wisc.edu!vms.macc.wisc.edu From: yahnke@vms.macc.wisc.edu (Ross Yahnke, MACC) Newsgroups: comp.sys.mac.programmer Subject: How do you grab lines like MacDraw? Message-ID: <4176@dogie.macc.wisc.edu> Date: 9 Aug 90 14:47:12 GMT Sender: news@dogie.macc.wisc.edu Organization: University of Wisconsin Academic Computing Center Lines: 12 In programming a MacDraw style environment where the user can click-n-drag objects around, it's ez enuf to grab objects with mass like squares and rectangles. You just see if the clicked on pixel is in any of the regions defined by the objects, i.e., you do a "PtInRgn()" call. But what if the object is a line? Can a region be defined to be a line, w/no thickness? I'm posting this for a friend who said he tried creating a region w/only a line in it and subsequent PtInRgn calls would fail... any ideas? >>> yahnke@macc.wisc.edu <<<