[comp.windows.x] Problem creating 8-bit widget on 24-bit screen

devin@samwise.Colorado.EDU (Yampalimardilor) (11/20/90)

I'm trying to create an applicationShellWidget with a particular visual.
The visual I want is not the default visual.

I have gotten the proper visual in (Visual *myvisual)...I try this:

i = 0;
XtSetArg(arglist[i], "visual", myvisual); i++;
TL = XtAppCreateShell(argv[0],"Vtest",applicationShellWidgetClass,
	server,arglist,i);

This doesn't work.  When I create a Colormap using myvisual as the visual
argument to XCreateColormap, then do a XSetWindowColormap, I get a BadMatch
error.

(Running DECwindows (X11R3), Motif 1.0.A.  Running on a VAXstation 3520 with
24-bit color.  myvisual is an 8-bit PseudoColor visual.)

How do I do what I need to do?

	Thanks!
	-Devin

Devin Hooker     (RP90)     DoD #0034
"Time - don't ponder it too long..."
"Performing on a stoll we've a sight to make you drool
	Seven virgins and a mule.  Keep it cool.  Keep it cool." -ELP