Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!apple!well!brecher From: brecher@well.UUCP (Steve Brecher) Newsgroups: comp.sys.mac.programmer Subject: Re: Getting usrItem to draw itself during ModalDialog Message-ID: <11235@well.UUCP> Date: 5 Apr 89 01:18:54 GMT References: <2580@tank.uchicago.edu> Reply-To: brecher@well.UUCP (Steve Brecher) Distribution: na Organization: Software Supply, Sunnyvale, CA Lines: 13 In article <2580@tank.uchicago.edu>, ra_robert@gsbacd.uchicago.edu writes: > I'm having a problem getting a usrItem in a dialog to be drawn. ... To > summarize, I generate (or try to generate) an update event from my > modalDialog's filter by invaling my usrItem's rect... InvalRect operates on the current grafPort. There is no assurance that your dialogUs port is current when your filter is called. Use SetPort before calling InvalRect. -- brecher@well.UUCP (Steve Brecher)