Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!news.miami.edu!umiami!dweisman From: dweisman@umiami.ir.miami.edu (Ordinary Man) Newsgroups: comp.sys.mac.programmer Subject: Re: Hiliteing Text Items in Dialogs Message-ID: <1991May25.132654.10182@umiami.ir.miami.edu> Date: 25 May 91 17:26:54 GMT References: <1991May24.040412.6929@world.std.com> Organization: Univ of Miami IR Lines: 31 In article <1991May24.040412.6929@world.std.com>, barry@world.std.com (Barry L Wolman) writes: > I've got a dialog box that contains several static and edit text fields that > I'd like to "grey out" or show normally depending on what user selects from a > set of radio buttons. Is there a simple equivalent to HiliteControl that can > be used with text fields? If it would be easier, I'd be willing to make the > text fields visible or invisible. There are a couple of ways I can think of off-hand. Either: 1) Stick a userItem around the text to be greyed (one for each text Item). Then when you want to grey that item, just use a FillRect on the userItem's rect with penmode patBic with grey. That should "dim" the text. 2) Use the Dialog Manager's routines Hide/Show DItem documented in IM IV I believe. These routines just hide the item (by moving them out of the dialog's visRgn). > Thanks, Barry Wolman You're welcome, Dan /-------------------------------------------------------------------------\ | Dan Weisman - University of Miami - Florida | || || || || | |--------------------------------------------------| || || ||\ /|| | | INTERNET -----> dweisman@umiami.IR.Miami.edu | || || || | || | | BITNET -----> dweisman@umiami | ||||||| || | || | |-------------------------------------------------------------------------| | "...the fact is- this friction will only be worn by persistance." -RUSH | \_________________________________________________________________________/