Path: utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!rutgers!att!chinet!jkingdon From: jkingdon@chinet.chi.il.us (James Kingdon) Newsgroups: comp.sys.mac.programmer Subject: Re: ClikLoop & Scrollbars Summary: The ClipRgn is set small Message-ID: <6129@chinet.chi.il.us> Date: 29 Jul 88 03:03:49 GMT References: <2318@wiley.UUCP> Reply-To: jkingdon@chinet.chi.il.us (James Kingdon) Organization: Chinet - Public Access Unix Lines: 12 In article <2318@wiley.UUCP> keith@wiley.UUCP (Keith Scott) writes: > I am writing a small editor based on TEdit and using the AutoScroll >feature. I enabled AutoScroll and patched in my own ClikLoop routine >(using SetClikLoop) so that scrollbars would get updated while autoscrolling >is going on. They aren't. >the scrollbar's value increase while the user is selecting (pretty nifty) I had this problem too, and what seems to be happening is that when your ClikLoop routine is called the ClipRgn has been set to the viewRect. So at the beginning of your ClikLoop routine, save the clipRgn, set it to the whole window, and at the end of the ClikLoop routine restore it. As nearly as I can tell this is documented nowhere in Inside Mac (sigh. Volume V seems even worse to me than the first 4.)