Path: utzoo!attcan!uunet!cs.utexas.edu!usc!bloom-beacon!goldhill.COM!jne From: jne@goldhill.COM Newsgroups: comp.windows.x Subject: Re: double repaint problem Message-ID: <8909051459.AA19526@godzilla.goldhill.com> Date: 5 Sep 89 14:59:32 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 17 Thanks for responses regarding my double repaint problem. I actually finally solved the problem myself. The real problem was that I allow users to paint in situations other that an Expose event handler. I have no choice but to keep this functionality in some cases. My solution, though, was to disallow it one case. When I map a widget, I ignore all paint requests (draw-line, draw-text, etc.) until I get the first Expose event (I may change this to MapWindow event, but the effect is similar). There's a slight lag while the user is calling all his draw-mumble's before the first Expose, but it's much less distracting (and much quicker) than actually doing the paints. Jeff Eisen Gold Hill Computers 617-621-3404 jne@goldhill.com