Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: Changing color map Message-ID: <835@auto-trol.UUCP> Date: 21 Sep 90 18:50:04 GMT References: <880@gtenmc.UUCP> Reply-To: marbru@auto-trol.UUCP (Martin Brunecky) Distribution: na Organization: Auto-trol Technology, Denver Lines: 39 In article <880@gtenmc.UUCP> larryo@gtenmc.UUCP (Larry Osterman) writes: >We are porting our application from Sun's Sunview window manager >to the IBM AIX RS6000, running Motif window manager. We are trying >to make an object "flash" by modifying the default color map. > >To make an object "flash", we first change its original color, >e.g. green, to dark red. Then we set up a timer of every 1/2 second >.... >Sun's Sunview window manager would let us modify its color map, >so the flashing of every object simultaneously works. But Motif >window manager does not allow us to do that. So we're looking for >some X lib calls.... ??? What THIS has to do with the window manager ? Except for the fact that Motif mwm 1.0.x does not deal with WM_COLORMAP_WINDOWS property right (only understands shells, not subwindows), there is nothing in any WM that would prevent changing colormap entries. So down to the toolkit. Assuming that IBM provides a REASONABLE visual by default (not a static xxx), you should be able to alloc writeable color cells, and do whatever pleases you to do with them. If you happen to use Xt and Widgets, you must allocate your color cell explicitly and set it in appropriate resource. If IBM's default cloromap (visual) is some flavor of static, you can still allocate a new colormap, asking for something like pseudo color visual, and do the color changes in there. The only case where you would have to REPAINT your object is if the system ONLY supports DIRECT color, but than again, it's system feature, not Motif. -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404