Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!julius.cs.uiuc.edu!apple!greggor From: greggor@Apple.COM (Greg L. Anderson) Newsgroups: comp.sys.mac.hypercard Subject: Re: odd-shaped buttons Message-ID: <45751@apple.Apple.COM> Date: 17 Oct 90 21:17:07 GMT References: <1990Oct13.000500.14994@midway.uchicago.edu> <1990Oct17.004859.27634@metro.ucc.su.OZ.AU> Organization: Apple Computer Inc., Cupertino, CA Lines: 27 In article <1990Oct17.004859.27634@metro.ucc.su.OZ.AU> carsup@extro.ucc.su.OZ.AU (Fisher Library support) writes: >There is something called PolyButtons from Heizer Software. I got mine with >the Waite Groups HyperCard Book. I don't recommend this version of polybuttons. (1) it's in HyperTalk, & therefore too slow to be useful, (2) the editor is not very good, and (3) it's not free. DISCLAIMER: I wrote a competing routine that does the same thing, but (1) It's an XFCN, (2) it has a nice editor, and (3) it's free. Mail me if you want a copy. >>In article ch2i+@andrew.cmu.edu (Charles A. Hill) writes: >>In HC, this would take a XFCN returning a handle to the region, and >>another to check if a given point is in a given region. The card script >>would catch the mouseUp event, then act on it as necessary. I missed this the first time it came by. Polybuttons does just that. (You still need Pict->region, which I suppose is a bit complicated; turn the Pict into a bitmap, then call BitmapToRegion.) -- ___\ /___ Greg Anderson (6 kyu) ___\ /___ . O . "Pon Nuki \ \ / / Advanced Technology Group \ \ / / O . O is ideal \ /\/\ / Apple Computer, Inc. \ /\/\ / . O . shape." \/ \/ greggor@apple.com \/ \/