Path: utzoo!attcan!uunet!husc6!rutgers!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Hiliting inactive controls (statText in dialog) Message-ID: <17308@apple.Apple.COM> Date: 18 Sep 88 05:09:59 GMT References: <266@iconsys.UUCP> <10050017@eecs.nwu.edu> Reply-To: lsr@apple.com.UUCP (Larry Rosenstein) Organization: Advanced Technology Group, Apple Computer Lines: 22 In article <10050017@eecs.nwu.edu> bob@eecs.nwu.edu (Bob Hablutzel) writes: > >set the paint mode to srcAnd and paint the view rectangle with a grey There is no srcAnd. What you want to do is use patBic and a pattern of gray. This is what the menu manager does for grayed out items. If it is a standard edit text item, then it will be in the system font (Chicago), which looks OK when grayed out this way. >pattern. When the item is reactivated, grab the text edit handle (tricky, >but not impossible), and refresh it. The real problem here should be >getting the handle and refreshing - making these user items would be Another way is to get the item's bounding box and call InvalRect. The Dialog Manager will take care of the update for you. (This may result in an undesirable flash, however.) Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 46-B Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr