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 :-(
Received on Thu Jan 23 1997 - 22:25:14 NZDT