Path: utzoo!attcan!uunet!bloom-beacon!SUN.COM!tomj From: tomj@SUN.COM (Tom Jacobs) Newsgroups: comp.windows.x Subject: Re: XView -- first experiences Message-ID: <8910140130.AA14572@snowking.sun.com> Date: 14 Oct 89 01:30:27 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 22 I just thought I should clarify something I wrote... > On Oct 13, 3:23pm, Tom Jacobs wrote: > Yes, you should only paint into the canvas's paint window(s) through > your CANVAS_REPAINT_PROC or CANVAS_RESIZE_PROC. After creating the I would suggest against doing *any* painting from the CANVAS_RESIZE_PROC because in the case of a resize, there will "almost" always be a corresponding call to the CANVAS_REPAINT_PROC. Because of that, more graphics calls would be called than is necessary. I say "almost" because with the "improper" setting of window gravity attributes, canvas resize attributes or retainedness may cause the resize proc to be called without a corresponding repaint call. However, in all of my experiements with this issue, I find problems in which the canvas is not properly repainted as I expected it. The shot to all of this is that resize procs should probably not do repainting but simply acknowledge the size changes if necessary and let the repaint proc get called normally. Tom Jacobs (tomj@sun.com -OR- ...!sun!tomj) Sun Microsystems, Inc. Mountain View, CA 94943