Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!sritchie From: sritchie@cs.ubc.ca (Stuart Ritchie) Newsgroups: comp.sys.next Subject: Picking an arbitrary shape Message-ID: <1991Mar16.045903.5234@cs.ubc.ca> Date: 16 Mar 91 04:59:03 GMT Sender: news@cs.ubc.ca (Usenet News) Organization: University of British Columbia, Vancouver, B.C., Canada Lines: 21 I have some well-defined shapes drawn in a Custom View using pswrap functions. For now, the shapes consist of filled rectangles and filled arcs. The shapes do not overlap. I'd like to find out which shape receives a mouse up or down event. Actually, for the time being, only one shape in the view is a possible target, and therefore I only need to check whether this one special shape was hit. I assume that rectangles are easy, and are given to you for free. But what about a convex shape like a filled arc? Is there a way to check whether a mouse event occurs inside of an arbitrary bounding path (bounding _box_ works for rectangles, but not circles or arcs or Bart Simpson's.) Come to think of it, I guess I should look at the Draw code. But any hints are welcome! ...Stuart --- I'm still looking for the kitchen sink in IB, anyone found it yet?