Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!purdue!gatech!ncsuvx!mcnc!ecsvax!dlugose From: dlugose@ecsvax.UUCP (Dan Dlugose) Newsgroups: comp.sys.mac.hypercard Subject: Re: how to make arbitrary-shaped buttons? Keywords: buttons, fields, buffer, madonna-please-marry-me Message-ID: <7505@ecsvax.UUCP> Date: 14 Aug 89 21:27:56 GMT References: <2594@laidbak.UUCP> Reply-To: dlugose@ecsvax.uncecs.edu.UUCP (Dan Dlugose) Organization: UNC Educational Computing Service Lines: 15 In article <2594@laidbak.UUCP> rls@laidbak.UUCP (Richard Scott) writes: > I'm wondering how I can produce arbitrarily-shaped buttons in >Hypercard, such that I could do, for example, a map of an area, where >within the boundaries of each sub-region, I could do a button action. >Unfortunately, variations of rectangles just doesn't suffice. Can I >*draw* a custom button area, using the drawing tools? None of the HyperCard >books I have say this. You can use a rectangular button that encloses your region, and on mouseup compare the clickloc to the region you have in mind. Since HyperTalk processes quite slowly, for irregular regions, you might want an external function to define the regions and whether a point is within them. Dan Dlugose UNC Educational Computing Service