Path: utzoo!utgpu!watmath!clyde!att!rutgers!gatech!bloom-beacon!sol.UUCP!laurie
From: laurie@sol.UUCP (Laurie Clow)
Newsgroups: comp.windows.x
Subject: colormap problems
Message-ID: <8812011738.AA10854@ws12.sag.uucp>
Date: 1 Dec 88 17:38:39 GMT
Sender: daemon@bloom-beacon.MIT.EDU
Organization: Science Applications International Corporation
Lines: 24

I am trying to use my own color map in a window rather than the system default.
After the window has been created I create the colormap and attach it to the 
window by calling:

color_map = XCreateColormap( display, window_id, visual, AllocAll );
XSetWindowColormap( display, window_id, color_map );

To get the color cells allocated I use

XStoreColor( display, colormap, &color_cell );

A call to XQueryColor returned the correct values in the cell.

Unfortunately the window appears to still be using the default colormap.  If
I allocate cells in the default map as well as my new colormap and set them 
appropriately the map is drawn up correctly.  I'm using a Sun 3/60 and R3 of 
the server.  

I really appreciate any help that anyone can give me on this.

Laurie Clow

UUCP:  {ucbvax!ucsd,seismo}!esosun!sol!laurie (Lauren Clow) (619) 546-6409
ARPA:  esosun!sol!laurie@seismo.css.gov