Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: making an invisible button in a dialog box Message-ID: <35232@apple.Apple.COM> Date: 3 Oct 89 18:52:53 GMT References: <12312@boulder.Colorado.EDU> Organization: Apple Computer Inc, Cupertino, CA Lines: 24 In article <12312@boulder.Colorado.EDU> hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) writes: >How would you do this with the IIGS toolbox: make an invisible >buttonItem with NewDItem() in a dialog, (no button outline or words). >It still has to be treated like a normal button in that ModalDialog() will >return the ID of that button if the mouse is clicked in its rectangle. >It has to let anything behind it in the dialog box "show through"; i.e. >if some words drawn with DrawString() are behind the invisible button >they have to show through. (I'm not sure exactly why you want to do this--maybe it you describe it somebody will come up with a more beautiful solution.) You can make, say, a *visible* static text item that has a very large bounding rect but no actual text. Create it before the other items, and it'll be checked last, so it catches all the clicks that don't hit other items. -- --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.