[comp.windows.x] colormaps in widgets

jefu@nmt.edu (Jeff Putnam) (03/11/91)

Im using Xt and Xaw to build a data display application.  I want to be able
to set up windows showing the data with specific colormaps (not usually
the standard ones).  I'm using a viewport widget with a pixmap containing
the data translated to pixels.  When I create the widget I've been trying
to set its colormap property before creation but it (the colormap) doesnt 
seem to stick.  But I cant do a setwindowcolormap on the widget after I
create it because the window isnt created yet.  And I usually throw away
the widget once I've done the createmanagedwidget call.  

So, I guess the question is, "How do you make a colormap that sticks to
widgets?" 

-- 
jefu@jupiter.nmt.edu  -- Jeff Putnam, New Mexico Tech, Socorro, NM