[comp.windows.x] double repaint problem

jne@goldhill.COM (09/05/89)

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