Xref: utzoo comp.windows.x:29787 comp.windows.x.motif:1270 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!boulder!uswat!frontier!samwise!devin From: devin@samwise.Colorado.EDU (Yampalimardilor) Newsgroups: comp.windows.x,comp.windows.x.motif Subject: Problem creating 8-bit widget on 24-bit screen Keywords: visuals - oh no not that... Message-ID: <1990Nov20.011015.24432@csn.org> Date: 20 Nov 90 01:10:15 GMT Sender: news@csn.org Reply-To: devin@boulder.Colorado.EDU Organization: University of Colorado, Boulder Lines: 26 Nntp-Posting-Host: samwise.colorado.edu 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