Re: XForms: colormaps and canvases

Jorgen Bjornstrup (jorgen@vision.auc.dk)
Fri, 24 Oct 1997 13:45:02 GMT

To subscribers of the xforms list from jorgen@vision.auc.dk (Jorgen Bjornstrup) :

Hi again,

>>>>> "Stephen" == Stephen Langer <langer@cam.nist.gov> writes:

>> First a question. Since you want to have identical colormaps in two
>> canvases in the same window, then why do you not just use the same
>> colormap for both canvases, i.e., by setting the colormap for the
>> window containing the canvases?

> I want to do just what you suggest, but it doesn't work. That's what
> prompted my original post. When I use the same colormap for both
> canvases, I get an X error when the form is freed ...

I do not want to be persistent, but according to your code example in
your first post, this is not what you are doing. You are explicitly
using the same colormap twice, once for each canvas. I am suggesting
that you set the colormap for the window containing both the canvases,
thereby implicitly setting the colormap of the canvases.

-- 
\jorgen

-------------------------------------------------------------------------- Jorgen Bjornstrup, M.Sc.C.E., PhD-stud | E-mail: jorgen@nada.kth.se Computational Vision and Active | /( | WWW: Perception Group (CVAP), NADA | ._//( | http://www.vision.auc.dk/~jorgen Kungl Tekniska Hvgskolan (KTH) | / | \ | PGP: ~jorgen/pgp.html Fiskartorpsvdgen 15, room 13.02 | Visiting | Phone: +46-8-790-6138 S-100 44 Stockholm, Sweden | from AUC | Fax: +46-8-723-0302 -------------------------------------------------------------------------- _________________________________________________ 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/