Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!shelby!polya!kaufman From: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: SrollRect Hassles Message-ID: <7486@polya.Stanford.EDU> Date: 7 Mar 89 17:31:46 GMT References: <1733@psu-cs.UUCP> <2525@ilium.cs.swarthmore.edu> Sender: Marc T. Kaufman Reply-To: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Distribution: usa Organization: Stanford University Lines: 16 In article <2525@ilium.cs.swarthmore.edu> jackiw@ilium.UUCP (Nick Jackiw) writes: >Second, note that I.M. doesn't say you can pass a null updateRgn as your >last parameter, the way you CAN pass a null maskRgn to copybits. I've had >some difficulties (i. e. crashes) with attempting to pass a NIL handle for >updateRgn. Try instead to pass an EMPTY rgn: ->aRgn:=NewRgn; ->ScrollRect(...,aRgn); at this point, do: InvalRgn (aRgn); to add the fresh area to the update area. ->DisposeRgn(aRgn); Marc Kaufman (kaufman@polya.stanford.edu)