Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!cyklop.nada.kth.se!news From: d88-jwa@byse.nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: Selecting lines Message-ID: Date: 14 Mar 91 07:31:12 GMT References: <4747.27DDB39C@stjhmc.fidonet.org> Sender: news@nada.kth.se (Mr News) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 37 In-reply-to: Lawson.English@p88.f15.n300.z1.fidonet.org's message of 11 Mar 91 18:21:58 GMT JW> The last time around, the consensus was to use QuickDraw: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) writes: I don't mean to be dense, but I couldn't quite get that... Basically, you set off a longword as portBits, create an offscreen grafPort that's one by one pixel large (gee, that much, huh ? :-) and set the portBits of that grafPort to your long value. Initialize the value (portBits) with 0. Initialize "selected object" to NULL. Repeat Draw next item. is "the value" <> 0 ? yes: set "selected object" to this item break out of loop no: too bad until there are no more items "selected object" now contains your clicked-on object Thanks. You're welcome. Lawson h+@nada.kth.se Jon W{tte -- "The IM-IV file manager chapter documents zillions of calls, all of which seem to do almost the same thing and none of which seem to do what I want them to do." -- Juri Munkki in comp.sys.mac.programmer