Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!galen!leue From: leue@galen.crd.ge.com (Bill Leue) Newsgroups: comp.sys.mac.hypercard Subject: Re: How to visually "disable" a button? Keywords: gray disable Message-ID: <19173@crdgw1.crd.ge.com> Date: 2 May 91 15:14:02 GMT References: <10793@pogo.WV.TEK.COM> Sender: news@crdgw1.crd.ge.com Organization: General Electric Research & Development Lines: 22 In article <10793@pogo.WV.TEK.COM> jacks@pogo.WV.TEK.COM (Jack Slingerland) writes: > >I am using HyperCard 2.0v2. I want to "gray out" some buttons when they >are not appropriate. I could make a separate icon that shows gray to >use when the button is not available and then hiding one icon and showing >the other. This seems unnecessarily heavy-handed. > Perhaps so. I use another, perhaps equally clumsy method: After creating my buttons, sizing them, iconizing them, etc., I snapshot the screen, extract just the button images from the dump, turn the black parts to gray with the paint bucket in SuperPaint, and then import the result back into HC via the cliboard, and paste the bitmap back "under" the buttons. When I want to gray out a button, I just hide it, and the greyed-out bitmap under the button then shows through. This technique requires a bit of munging around to set up, but once you have done it, all it takes is "hide" and "show" commands to grey-out and restore the button. -Bill Leue leue@crd.ge.com