From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11038b,8a4731f18a2c7351 X-Google-Attributes: gid11038b,public X-Google-Thread: 10b6ac,8a4731f18a2c7351 X-Google-Attributes: gid10b6ac,public X-Google-Thread: 1164f8,8a4731f18a2c7351 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-09-24 15:52:37 PST Xref: gmd.de comp.sys.dec:10341 comp.windows.x.motif:13238 comp.windows.x.intrinsics:1791 Newsgroups: comp.sys.dec,comp.windows.x.motif,comp.windows.x.intrinsics Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!sdd.hp.com!col.hp.com!fc.hp.com!stroyan From: stroyan@fc.hp.com (Mike Stroyan) Subject: Re: ** HELP ** How to use other than default visual ??? Sender: news@fc.hp.com (news daemon) Message-ID: Date: Fri, 24 Sep 1993 22:22:46 GMT References: Nntp-Posting-Host: hpstryn.fc.hp.com Organization: Hewlett-Packard Fort Collins Site X-Newsreader: TIN [version 1.1 PL9.2] Followup-To: comp.sys.dec,comp.windows.x.motif,comp.windows.x.intrinsics Lukas Rosenthaler (rosenth@vision.ethz.ch) wrote: : I want my OSF/Motif based application to use a non-default visual. The : machine I have has a 24 Bit truecolor display, which has to be in this mode : and can *NOT* permanently switched to PseudoColor. However, one application : absolutely needs a 8-Bit PseudoColor visual. The application uses OSF/Motif : with UIL. So far, I succeed to do the following things: : 1) I find the apropriate visual : 2) I can create a colormap using this visual : 3) I set the "XmNvisual" and "XmNcolormap" resources of the applicationShell : to the PseudoColor visual and the 8-Bit colormap You should also set "XmNdepth" to match the depth of the visual. The Motif 1.1 release had a defect in always using pixmaps of the default visual's depth. This made many Motif widget's get BadMatch errors when using these pixmaps to set window backgrounds or GC tiles for visuals with different depth than the default visual. The only fix I know for this is to move to Motif 1.2. -- Mike Stroyan, mike_stroyan@fc.hp.com