Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pilchuck!dataio!gtenmc!larryo From: larryo@gtenmc.UUCP (Larry Osterman) Newsgroups: comp.windows.x Subject: Changing color map Message-ID: <880@gtenmc.UUCP> Date: 21 Sep 90 00:31:00 GMT Reply-To: larryo@gtenmc.UUCP (Larry Osterman) Distribution: na Organization: GTE Telecom, Inc. Bothell, WA Lines: 29 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 that calls a function that will change the index color of that dark red color to light red in the default color map. So every object that references that dark red and light red color, will simultaneously have its color toggled, which in turn gives the effect of "flashing". 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 (other than modifying the server source code), or any other way that would let us modify the default color map, and continue to let us modify it even when we switch focus to other windows. By the way, we are using V.I. Corporation's DVtools, but there doesn't seem to be any way to accomplish flashing (other than redrawing the object, which is downright ugly) with DVtools. Please reply by email. I will summarize if demand warrants. -- Larry Osterman / larryo@gtenmc.UUCP / (206) 487-8312