Re: XForms: How to get expose and resize from a canvas ??

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 30 Jul 97 06:01:58 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> > But,while I resizes the window, there are almost
> > 15% chances the resize handler did not print out resize message.
>
> Maybe your output is buffered. After the print command in each
> callback, try
>
> fflush( FILE *stream);

If he's writing to standard error or standard output, it shouldn't be.

I've had the problem to which the poster is referring (no
ConfigureNotify events being delivered when the Window is resized) on
SGI platforms (IRIX 5.3 -- I don't recall if it happens on my 6.x
boxes). There doesn't seem to be a cure.

As far as I can tell, this is a bug in the SGI server, since I can't
replicate it on any of my Sun platforms. My only solution was to add
an "uncorrupt" or "redraw" command to allow the luser to redraw a
corrupted display after a resize.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/