Newsgroups: comp.sys.sun Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!mit-eddie!uw-beaver!rice!rice!sun-spots-request From: lottey@theory.tn.cornell.edu (lottey) Subject: visuals in X Windows Message-ID: <1990Aug13.011038.5605@rice.edu> Originator: spots@titan.rice.edu Keywords: Windows Sender: sun-spots-request@rice.edu Organization: Sun-Spots X-Sun-Spots-Digest: Volume 9, Issue 301, message 6 Date: Thu, 9 Aug 90 13:54:18 EDT Approved: Sun-Spots@rice.edu I am working with X Windows (OpenWindows 1.0) on a SUN 3/60. In searching for methods to achieve Pseudocolor, I tried the direct approach: creating a window using a visual of class pseudocolor. I inevitably get an Xerror specifying "BadMatch, invalid parameter attribute" for the opcode XCreateWindow. This can be directly traced to the use of a visual other than the default, as an argument to XCreateWindow. (I believe I follow the rules for securing visuals to the letter!) Has anyone managed to achieve pseduocolor using a visual different from the default? Is there a trick or incantation to be used? A code fragment or word of advice would be most welcome - - mail to lottey@theory.tn.cornell.edu Side note: I have since found the environment variable USE_MIT_VISUALS which makes the defualt visual one of class pseudocolor. However I'm still quite interested in the question at hand. Michael Manyin