Xref: utzoo comp.sys.mac.hypercard:4749 comp.sys.mac.programmer:18323 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!usc!chaph.usc.edu!aludra.usc.edu!bkuo From: bkuo@aludra.usc.edu (Benjamin Kuo) Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer Subject: Re: odd-shaped buttons Message-ID: <12568@chaph.usc.edu> Date: 16 Oct 90 17:38:37 GMT References: <1990Oct13.000500.14994@midway.uchicago.edu> Sender: news@chaph.usc.edu Followup-To: comp.sys.mac.hypercard Organization: University of Southern California, Los Angeles, CA Lines: 13 Nntp-Posting-Host: aludra.usc.edu Exactly. I've done it with my own (bomb-prone) XFCN, but basically what I did was write an XFCN which took the locations of a mouseDown on the card, check the coordinates (in form x,y) with a region (x1,y1,x2,y2,x3,y3,etc) and returned a "1" if it was in the region, and a "0" if it wasn't. I used another XCMD to hilight that region. There's a lot of overhead involved, though, if you have more than two or three regions to check (card scripting from hell....) I assume you could do it via scripts, but that's SLOW... (Of course, I haven't even seen HC2.0 yet, so I can't make any guarantees that there isn't something already there to do this...) Benjamin Kuo bkuo@usc.edu