Path: utzoo!attcan!uunet!bloom-beacon!pdaeng.UUCP!willson
From: willson@pdaeng.UUCP (Stephen Willson)
Newsgroups: comp.windows.x
Subject: Changing the default visual for Xt toolkit widgets
Message-ID: <8909271536.AA22775@quito.local>
Date: 27 Sep 89 15:36:22 GMT
Sender: daemon@bloom-beacon.MIT.EDU
Organization: The Internet
Lines: 29

Hello,

We have just received version 1.0 of OpenLook which we are running on Sun-4s
and Sun OS 4.0.3.  The default visual for the X11/News server is static
color.  There is another visual which is pseudo color but it is not the
default visual.  Our problem:  all of our widgets get created with the default,
static color visual, and we can't find a way to tell Xt that we want to use
a different visual.  We need the other visual, obviously, so that we can
have colormaps installed.  We have grep'd the Xt source for X11R3 with fixes
1-9 and it appears that widget creation always inherits the visual of the
parent window.  We have looked in Oliver Jones' book on Xlib to make sure
we understand the mechanics of visuals and colormaps, and we have looked in
Doug Young's book on Xt, and, as I indicated we have grep'd the source code.
I have also grep'd all the messages I have saved from comp.windows.x (5 MB
worth) and I still can't find the answer.  The X11/News server from Sun is
the first server we have found that has static color as the default visual.

Please, if any toolkit experts in netland can send us any suggestions, we
would be most grateful.  I suspect other people will be running into this
soon enough so you may want to post to the net.

Thanks in advance,

Stephen Clarke-Willson
Software Architect
PDA Engineering
Costa Mesa, CA 92626
714/540 8900 x291
willson@pda.com