How do the CDE Motif applications share their Color?

From: Achim Bohnet <ach_at_rosat.mpe-garching.mpg.de>
Date: Thu, 23 Jan 1997 22:08:31 +0100

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

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT