Re: GL canvases

Steve Lamont (
Thu, 27 Feb 97 13:46:22 PST

To subscribers of the xforms list from (Steve Lamont) :

> The basic problem is that whenever you show a canvas both the
> Init and Activate property handlers are called, and whenever
> you hide a canvas the Cleanup handler is called.
> [...]
> One work around I've considered is creating a couple of global
> contexts maintained by the program, and modifying the init and
> cleanup handlers to copy contexts back and forth as necessary.
> I haven't tried this yet, and am interested in any comments
> on how others may have addressed this problem.

I've been bitten by this one as well, although probably not with the
consequences that you have. I tend to agree with your criticism.

My solution was to call XUnmapWindow() rather than fl_hide_form().
That way the window simply gets unmapped by the X server and XForms is
none the wiser.

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: