courtney@chassel.cps.msu.edu (Jonathan Courtney) (04/18/91)
I am working on an XView application that needs to do some colormap manipulation and I would like to use XView's colormap segments. Un- fortunately, I have run into some problems: - If I use a DYNAMIC-type cms and I want my control panel's to look right, I have to specify CMS_CONTROL_CMS as TRUE; but this wipes over the color definitions for the root window background and other applications' panel colors. Thus, there is no way to be clever and avoid some really ugly "flashing". - If instead I create a new STATIC-type cms when I want to modify the color- map, and try to install this in place of the static cms already defined, nothing happens. That is to say, I think they are both referencing the default colormap but with different indices to it, instead of creating two separate static colormaps. Ideally I would like to create a dynamic cms of about 240 colors, retaining my appliation's control colors and overwriting a minimal number of colors needed by other applications. If this can be done by swapping static cms's, it would be fine. Anyone have any experiences with this? Should I rely on the X colormap routines instead? Jon Courtney