Re: Colormaps, etc. (fwd)

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 5 Dec 96 18:14:28 PST

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

> A proper image form is created using create_form(); when a resize is
> required the form is hidden with fl_hide_form(fd_image_form->image_form)

Why are you hiding to resize? I simply do a redraw of the image (if
necessary) and do a buffer swap.

> ( I tried spl's suggestion using XUnMapWindow and XMapWindow but an
> X_ConfigureWindow and X_ChangeWindowAttributes error occurs) and
> redisplayed with the following.

Are these errors the result of the XUnmapWindow() or the result of
something previous? Try running in -sync mode and trapping the error
with the debugger as I suggested to another poster recently. A map or
unmap should cause those errors. I suspect what's happening is that
some X call earlier on is causing the error and it just gets detected
at the XUnmapWindow() call.

> Any ideas ?

My code is virtually identical to yours in respect to creating the
GLCanvas. I did make a few mods to gl.c but they were mostly minor
stylistic changes, as I recall.

spl
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html