Re: canvas colormaps

Steve Lamont (
Wed, 15 Jan 97 05:32:53 PST

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

> The problem is that the canvas's colormap is still the normal xforms default
> colormap. Am I forgetting something, or doing something in the wrong order?

Looks right to me. The only other thing I do is to destroy the
Colormap that XForms has created with XFreeColormap() to keep the
Server from getting polluted.

How do you know you're getting the "wrong" Colormap? Are you querying
the XID of the Colormap in your drawing handler? What does xwininfo

Finally, for such a relatively small number of colors, why not use the
Colormap XForms hands you and just add what you need rather than
creating your own Colormap and having to deal with all the color