Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!samsung!think!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Using other than the default visual with Xt Message-ID: <9001041823.AA05708@expo.lcs.mit.edu> Date: 4 Jan 90 18:23:51 GMT References: <5814@ncar.ucar.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 19 > I have a little Xt based program that needs to allocate some color cells. > For the 'xnews' server, the default visual is StaticColor, but there > is a PsuedoColor visual available. How do I get my widget hierarchy to > use *that* visual when the time comes to 'Realize'? > My attempts thusfar all result in BadMatch errors. In R4 all widgets inherit their visual from their parent (by default), and the Shell widgets have a "visual" resource. By assigning your new visual to the Shell widget it should be automatically be picked up by your entire widget tree. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213