Xref: utzoo comp.sys.mac.hypercard:4756 comp.sys.mac.programmer:18339 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!greggor From: greggor@Apple.COM (Greg L. Anderson) Newsgroups: comp.sys.mac.hypercard,comp.sys.mac.programmer Subject: Re: odd-shaped buttons Message-ID: <45750@apple.Apple.COM> Date: 17 Oct 90 21:08:59 GMT References: <2364@gould.doc.ic.ac.uk> Organization: Apple Computer Inc., Cupertino, CA Lines: 24 In article <2364@gould.doc.ic.ac.uk> np@doc.ic.ac.uk (Nigel Perry) writes: >Needed a button the shape of an arbitrary picture. > >Ok, I have written a WDEF which displays a PICT (B/W only), it either >masks the given PICT or takes another to act as the mask, it then >constructs an arbitrary shaped window (complete with holes, non-contiguous >areas etc.). My polybutton XFCNs (which work with HyperCard 2) use regions to identify button shapes. At the moment, said regions can only be defined as polygons. If you had a PICT->Region conversion routine, you could probably merge your code with mine & end up with a pretty nifty irregular-button XFCN. ___\ /___ Greg Anderson (6 kyu) ___\ /___ . O . "Pon Nuki \ \ / / Advanced Technology Group \ \ / / O . O is ideal \ /\/\ / Apple Computer, Inc. \ /\/\ / . O . shape." \/ \/ greggor@apple.com \/ \/ -- ___\ /___ Greg Anderson (6 kyu) ___\ /___ . O . "Pon Nuki \ \ / / Advanced Technology Group \ \ / / O . O is ideal \ /\/\ / Apple Computer, Inc. \ /\/\ / . O . shape." \/ \/ greggor@apple.com \/ \/