Path: utzoo!censor!geac!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!ncar!redcloud.scd.ucar.edu!clyne From: clyne@redcloud.scd.ucar.edu (John Clyne) Newsgroups: comp.windows.x Subject: installing a new colormap Message-ID: <10420@ncar.ucar.edu> Date: 28 Feb 91 15:13:24 GMT Sender: news@ncar.ucar.edu Reply-To: clyne@redcloud.scd.ucar.edu (John Clyne) Organization: Scientific Computing Division/NCAR, Boulder, CO Lines: 29 Hello, I'm sure this has been discussed before but I don't recall seeing it and I can't find anything in FAQ. So I apologize in advance. I would like to install my own colormap created with XCreateColormap. I wouldn't think this would be too difficult but I haven't had any success. I am aware that there are some complications brought upon by non-ICCCM compliant window managers. But I'm running twm which I believe claims to be ICCCM compliant. Ideally I want my software to work correctly with both compliant and non-compliant window managers and if not too much trouble, with no window manager at all. Could someone please give me step by step instructions for accomplishing this? I've tried a number of things and they just don't seem to be working. It appears that I'm successful in installing my colormap but that the window manager is reinstalling the default colormap. (I'm typing this posting from home so I can't verify this now). I would like my cmap to be installed when i'm in a particular window and uninstalled when i move the sprite out of that window (the default cmap should be restored of course). If there are in fact differences between how things need to be handled with ICCCM compliant and non ICCCM compliant then can one detect whether the window manager is compliant or not? Could you also please tell me the distinction between XSetWindowColormap() and XInstallColormap()? These two functions don't seem to be behaving as I would expect from reading the documentation. I'm running R4 of X11 with all the latest patches. My application is Xt based. Thanks much - jc John Clyne (clyne@ncar.ucar.edu) National Center for Atmospheric Research P.O. Box 3000, Boulder, Colorado 80307 (303) 497-1236