Re: Colormaps, etc.

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Thu, 5 Dec 1996 09:01:22 -0600

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

Message-Id: <9612050505.AA18021@szechuan.UCSD.EDU>
>> What is this win1_ctx ? If it is a static variable, you might
>> have a problem. As spl pointed out, when you hide a form,
>> all the windows (and their associated properties) are destroyed.
>> You should use fl_get_glcanvas_context to grab the correct
>> context.

>Doesn't the context get hosed as well?

When you do fl_show_form, everything is re-created.
This is why you must always use fl_get_glcanvas_context to get the current
context (as opposed to saving the context at the begining the first time
the canvas was created). The context as well as window ID come and go.
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html