home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x.motif:8889 comp.windows.x.intrinsics:806
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!adagio.panasonic.com!nntp-server.caltech.edu!druggist!dhl
- From: dhl@druggist.gg.caltech.edu (David Laidlaw)
- Newsgroups: comp.windows.x.motif,comp.windows.x.intrinsics
- Subject: getting non-default depth/visual for a top-level shell widght?
- Date: 27 Jan 1993 04:20:18 GMT
- Organization: California Institute of Technology, Pasadena
- Lines: 35
- Distribution: all
- Message-ID: <1k52i2INNosj@gap.caltech.edu>
- NNTP-Posting-Host: druggist.gg.caltech.edu
- Keywords: visual, depth, motif, intrinsics, xtoolkit
-
- I am attempting to write an application that will use a 24-bit-deep
- DirectColor visual, if it exists. I would like this to happen whether
- that visual/depth combination is the default or not. I have tried
- setting the depth and visual values to "24" and "DirectColor" in the
- app-defaults file, and get no complaints from the toolkit, but the
- XCreateWindow call gets a "Bad Match" error when the top level shell
- is realized.
-
- Here is the single toolkit call that I make:
-
- topIm = XtInitialize("topIm", "gg/xdisp2", NULL, 0,
- (Cardinal *) &argc, "foo");
-
- And here are the relevant resources from the app-defaults file:
-
- *depth: 24
- *visual: DirectColor
- *topIm.geometry: =+10+10
- *topIm.depth: 24
- *topIm.visual: DirectColor
-
- It appears to me that the depth for the Shell widget is getting reset
- to the DefaultDepth of the screen. This seems to preclude setting it
- to any other value.
-
- If you have any suggestions, I would greatly appreciate e-mail to
- dhl@egg.caltech.edu. Thanks for any help!
-
- David Laidlaw Caltech Computer Graphics Lab
- dhl@egg.caltech.edu Mail Stop 350-74
- 818-397-2820 Pasadena, CA 91125
- --
- David Laidlaw Caltech Computer Graphics Lab
- dhl@egg.caltech.edu Mail Stop 350-74
- 818-397-2820 Pasadena, CA 91125
-