From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076450423388.tru64-unix-managers.marc@archive.invalid> From: Achim Bohnet Date: Thu, 23 Jan 1997 21:08:31 +0000 To: tru64-unix-managers Subject: How do the CDE Motif applications share their Color? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076450423388 As all users with 256 color displays know free color cells are a rare resource. So I've undertaken the up to now unsolvable task to figure out how CDE/Motif applications do their color sharing with the help of the CDE Style Manager. I would like to be able to get tcl/tk, perl/tk and other widget sets to use the same colors just like the Motif applications. But I was not able to figure out where to lookup this information in the X server. I have already rough solutions for Tk based on (re)modeling motif color schema based on the resources: usePalette, useColors and the files in /usr/dt/palettes/ and setting the corresponding resources of the widget set. But it complicated, errorprone, not complete and dissatisfying. So, anybody aware of the method to ask the *X server*: What color cell has the CDE Style Manager already allocated for me to use it as background, foreground, top-, bottomShadowColor and selectColor for the active, inactive, text, primary and seconardy colorset Any hint how the Motif library manages this is very very much appreciated. Achim P.S. I have already RTFM: Chapter 15 of the CDE Advanced User's and System Administrator's Guide. Realy useful but the solution is not there :-(