Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!uwm.edu!ogicse!unmvax!nmt.edu!jefu From: jefu@nmt.edu (Jeff Putnam) Newsgroups: comp.windows.x Subject: colormaps in widgets Message-ID: <1991Mar10.220536.21515@nmt.edu> Date: 10 Mar 91 22:05:36 GMT Organization: The Museum of Differential Geometry Lines: 15 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