Path: utzoo!attcan!uunet!pyrdc!netsys!ames!claris!drc From: drc@claris.UUCP (Dennis Cohen) Newsgroups: comp.sys.mac.programmer Subject: Re: Highlight "OK" buttons Keywords: Dialogs Message-ID: <5229@claris.UUCP> Date: 8 Sep 88 16:38:06 GMT References: <3316@homxc.UUCP> <16727@apple.Apple.COM> <27471@think.UUCP> Reply-To: drc@claris.UUCP (Dennis Cohen) Organization: Claris Corporation, Mountain View CA Lines: 22 In article <27471@think.UUCP> ephraim@vidar.think.com.UUCP (ephraim vishniac) writes: ... >That's how you *draw* the highlighting, which is only a partial answer >to the question of how you highlight a button. The part that people >often get wrong is *when* you highlight the button. They tend to >forget that the highlighting might need refreshment (refreshing?) >(redrawing?) when the dialog gets an update event. > >It seems like a safe tactic would be to redraw the highlighting >whenever you get any update event for the dialog, but I'm sure >somebody will point out to me a reason that's a bad idea... > This is essentially the correct method (at least in my opinion). The method I use is to create a userItem that extends out from the default\ button by four pixels in all directions and attach a "draw me" proc to it with SetDItem that does the FrameRoundRect. Dennis Cohen Claris Corp. ------------ Disclaimer: Any opinions expressed above are _MINE_!