home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 18176 < prev    next >
Encoding:
Text File  |  1992-12-20  |  1.5 KB  |  54 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!rochester!cantaloupe.srv.cs.cmu.edu!H.GP.CS.CMU.EDU!drew
  3. From: drew+@CS.CMU.EDU (Paul Olbrich)
  4. Subject: Accessing popup planes with Xlib
  5. Message-ID: <BzG13z.Bp9.2@cs.cmu.edu>
  6. Keywords: SATAN LIKES THIS MESSAGE
  7. Sender: news@cs.cmu.edu (Usenet News System)
  8. Nntp-Posting-Host: h.gp.cs.cmu.edu
  9. Organization: Carnegie Mellon University
  10. Date: Fri, 18 Dec 1992 07:07:07 GMT
  11. Lines: 41
  12.  
  13.  
  14. Hi.
  15.  
  16. Grin, squeak.
  17.  
  18.  
  19. I'm trying to open a window in the popup planes using
  20. Xlib calls.
  21.  
  22. So far on my quest I have figured out how to...
  23.  
  24.    1.  Get the list of visuals with XGetVisualIinfo().
  25.    2.  Get the "SERVER_OVERLAY_VISUALS" root window property with 
  26.           XGetWindowProperty().
  27.    3.  Compare the two and "guess" that the first visual with
  28.           a depth of two and a class of PseudoColor is the
  29.           popup planes visual.
  30.    4.  Create a colormap using the popup planes visual with
  31.           XCreateColormap().
  32.    5.  Create a window using the visual's depth, the new colormap,
  33.           and the visual, using XCreateWindow().
  34.  
  35.  
  36.  
  37. However, in step 5, I get a BadMatch error.  I'm also setting
  38. "override_redirect" to True.  (I'm trying to make my own popup menus.)
  39.  
  40. Please please please someone help me.  What am I doing wrong?
  41. What else must I do?
  42.  
  43.  
  44. If nobody responds, I shall certainly push a screwdriver
  45. through my skull.
  46.  
  47. I've already checked out
  48. /usr/src/X11/motif/overlay_demos/lib/sgi_visual.c
  49.  
  50.  
  51.  
  52. Drew Olbrich
  53. drew@cs.cmu.edu
  54.