home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8889 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.9 KB

  1. Xref: sparky comp.windows.x.motif:8889 comp.windows.x.intrinsics:806
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!adagio.panasonic.com!nntp-server.caltech.edu!druggist!dhl
  3. From: dhl@druggist.gg.caltech.edu (David Laidlaw)
  4. Newsgroups: comp.windows.x.motif,comp.windows.x.intrinsics
  5. Subject: getting non-default depth/visual for a top-level shell widght?
  6. Date: 27 Jan 1993 04:20:18 GMT
  7. Organization: California Institute of Technology, Pasadena
  8. Lines: 35
  9. Distribution: all
  10. Message-ID: <1k52i2INNosj@gap.caltech.edu>
  11. NNTP-Posting-Host: druggist.gg.caltech.edu
  12. Keywords: visual, depth, motif, intrinsics, xtoolkit
  13.  
  14. I am attempting to write an application that will use a 24-bit-deep
  15. DirectColor visual, if it exists.  I would like this to happen whether
  16. that visual/depth combination is the default or not.  I have tried
  17. setting the depth and visual values to "24" and "DirectColor" in the
  18. app-defaults file, and get no complaints from the toolkit, but the
  19. XCreateWindow call gets a "Bad Match" error when the top level shell
  20. is realized.
  21.  
  22. Here is the single toolkit call that I make:
  23.  
  24.    topIm = XtInitialize("topIm", "gg/xdisp2", NULL, 0,
  25.             (Cardinal *) &argc, "foo");
  26.  
  27. And here are the relevant resources from the app-defaults file:
  28.  
  29. *depth:                24
  30. *visual:            DirectColor
  31. *topIm.geometry:        =+10+10
  32. *topIm.depth:            24
  33. *topIm.visual:            DirectColor
  34.  
  35. It appears to me that the depth for the Shell widget is getting reset
  36. to the DefaultDepth of the screen.  This seems to preclude setting it
  37. to any other value.
  38.  
  39. If you have any suggestions, I would greatly appreciate e-mail to
  40. dhl@egg.caltech.edu.  Thanks for any help!
  41.  
  42. David Laidlaw                Caltech Computer Graphics Lab
  43. dhl@egg.caltech.edu                         Mail Stop 350-74
  44. 818-397-2820                           Pasadena, CA 91125
  45. --
  46. David Laidlaw                Caltech Computer Graphics Lab
  47. dhl@egg.caltech.edu                         Mail Stop 350-74
  48. 818-397-2820                           Pasadena, CA 91125
  49.