Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!metro!news From: carsup@extro.ucc.su.OZ.AU (Fisher Library support) Newsgroups: comp.sys.mac.hypercard Subject: Re: odd-shaped buttons Message-ID: <1990Oct17.004859.27634@metro.ucc.su.OZ.AU> Date: 17 Oct 90 00:48:59 GMT References: <1990Oct13.000500.14994@midway.uchicago.edu> Sender: Norton Chia Reply-To: carsup@extro.ucc.su.OZ.AU (Fisher Library support) Organization: University Computing Service, Uni. of Sydney, Australia. Lines: 30 In article <1990Oct13.000500.14994@midway.uchicago.edu> francis@daisy.uchicago.edu (Francis Stracke) writes: >In article ch2i+@andrew.cmu.edu (Charles A. Hill) writes: >>I want to use the outlines of a picture to define the parameters of a >>button. In other words, if someone clicks anywhere within the outlines >>of a picture (no matter what shape the picture is), the button will be >>activated. I've been trying to improvise by filling all the nooks and >[...] >>I don't know any languages but Hypertalk, but I'm told that making an >>irregularly shaped picture "hot" is no sweat in a language such as C. > >It's not incredibly easy. You'd have to have some way of getting the >region from the bitmap (is this supported by the Toolbox?), then check, >for each click, if the mouse is inside the region. > >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. Can't you use two buttons such that a smaller one resides within the bigger to map out the insides so effectively the button is the "boundary"? There is something called PolyButtons from Heizer Software. I got mine with the Waite Groups HyperCard Book. I don't have the name off hand but it's the one with a wizard on the cover that looks remarkably like Waite! The stack offered in the book directed me to purchase it from Heizer. Check it out. PolyButtons allows you to have buttons of any shape and size within reason. **My employers don't understand me, so I guess I'm on my own when I speak out** Norton Chia | I *think* my address is Micro Support | carsup@extro.ucc.su.OZ.AU *******************************************************************************