home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!rochester!cantaloupe.srv.cs.cmu.edu!H.GP.CS.CMU.EDU!drew
- From: drew+@CS.CMU.EDU (Paul Olbrich)
- Subject: Accessing popup planes with Xlib
- Message-ID: <BzG13z.Bp9.2@cs.cmu.edu>
- Keywords: SATAN LIKES THIS MESSAGE
- Sender: news@cs.cmu.edu (Usenet News System)
- Nntp-Posting-Host: h.gp.cs.cmu.edu
- Organization: Carnegie Mellon University
- Date: Fri, 18 Dec 1992 07:07:07 GMT
- Lines: 41
-
-
- Hi.
-
- Grin, squeak.
-
-
- I'm trying to open a window in the popup planes using
- Xlib calls.
-
- So far on my quest I have figured out how to...
-
- 1. Get the list of visuals with XGetVisualIinfo().
- 2. Get the "SERVER_OVERLAY_VISUALS" root window property with
- XGetWindowProperty().
- 3. Compare the two and "guess" that the first visual with
- a depth of two and a class of PseudoColor is the
- popup planes visual.
- 4. Create a colormap using the popup planes visual with
- XCreateColormap().
- 5. Create a window using the visual's depth, the new colormap,
- and the visual, using XCreateWindow().
-
-
-
- However, in step 5, I get a BadMatch error. I'm also setting
- "override_redirect" to True. (I'm trying to make my own popup menus.)
-
- Please please please someone help me. What am I doing wrong?
- What else must I do?
-
-
- If nobody responds, I shall certainly push a screwdriver
- through my skull.
-
- I've already checked out
- /usr/src/X11/motif/overlay_demos/lib/sgi_visual.c
-
-
-
- Drew Olbrich
- drew@cs.cmu.edu
-