davis@karl.ucar.edu (Glenn P. Davis) (12/29/89)
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. (I know about the 'USE_MIT_VISUALS' environment variable. I would prefer to solve this in the client.) Thanks Glenn P. Davis davis@unidata.ucar.edu UCAR / Unidata PO Box 3000 1685 38th St. Boulder, CO 80307-3000 Boulder, CO 80301 (303) 497 8643
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (01/05/90)
> 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