tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* How do the CDE Motif applications share their Color?
@ 1997-01-23 21:08 Achim Bohnet
  0 siblings, 0 replies; only message in thread
From: Achim Bohnet @ 1997-01-23 21:08 UTC (permalink / raw)
  To: tru64-unix-managers

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 :-(

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-01-23 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-23 21:08 How do the CDE Motif applications share their Color? Achim Bohnet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox