Path: utzoo!attcan!uunet!munnari!murtoa.cs.mu.oz.au!munnari.oz!jkjl From: jkjl@munnari.oz (John Lim) Newsgroups: comp.sys.mac.programmer Subject: Re: Modal dialog filter proc Message-ID: <1489@murtoa.cs.mu.oz.au> Date: 12 May 89 08:26:48 GMT References: <18219@cup.portal.com> Sender: news@cs.mu.oz.au Reply-To: jkjl@munmurra.UUCP (John Lim) Organization: University of Melbourne, Comp Sci Dept Lines: 15 In article <18219@cup.portal.com> nicky@cup.portal.com (nick john pilch) writes: -Below is the code for a modal dialog filter proc that seems to have a problem. -The relevant part of this function draws a border around the default -button whenever the dialog gets an update event. It then returns FALSE -to signal Modal Dialog to handle the update event also (draw the rest of the -dialog). The problem is that sometimes the dialog keeps getting update -events until doomsday. My filter proc then proceeds to keep drawing the -border over and over again. Anyone have any clues? A related problem is HA ! A very common mistake to make ( i used to make it myself until i got smarter :-) You are not clearing the updateRgn of your window. Try returning TRUE on updateEvents OR use BeginUpdate and EndUpdate in your filterProc.