home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rutgers!micro-heart-of-gold.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: gerard@dps.co.UK (Gerard O'Driscoll)
- Newsgroups: comp.windows.x
- Subject: Specifying colormap resources
- Message-ID: <4155.9207231217@scorpion.dps.co.uk>
- Date: 23 Jul 92 12:17:56 GMT
- Sender: daemon@athena.mit.edu (Mr Background)
- Organization: The Internet
- Lines: 21
-
-
- I have a server which allows both 8 and 24 bit deep visuals on the same screen.
- Given that I have started the server with a default 8 bit PseudoColor visual
- root window, the question is, how do I start a standard X client (e.g. xterm)
- which uses, say, a 24 bit TrueColor visual?
-
- The visual and the depth can be specified as resources but it seems that Xt
- provides no means for specifying colormap resources, other than from within
- the source code itself (there's no string to colormap converter for instance).
- So for a given widget we inherit the colormap from the parent, but of course
- CreateWindow fails since the parent colormap and the visual are
- incompatible. Is Xt lacking or have I missed something? Are there any widget
- sets which provide such a capability?
-
- I guess the next question is, what would a colormap resource look like:
- Colormap id, resource name of standard colormap? And who creates it in the
- first place, xstdcmap, the server?
-
- Replies directly to me if possible.
-
- gerard@dps.co.uk
-