home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 19037 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.6 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: 4carroll_j@spcvxb.spc.edu
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: How to get Expose events
  5. Message-ID: <1992Dec31.235435.4958@sm.sony.co.jp>
  6. Date: 31 Dec 92 23:54:35 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: St. Peter's College, US
  10. Lines: 38
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 31 Dec 92 22:20:12 GMT
  14. Message-Id: <1992Dec31.172012.4795@spcvxb.spc.edu>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18.  
  19.  Hi,
  20.  
  21.     I am having some  difficulties  with  XMapWindow  amd  receiving  Expose 
  22.  events.  I have a window heirarchy that consists of four windows, where the 
  23.  first window is  root.  I  have  tried  every  combination  of  XMapWindow, 
  24.  XMapSubwindows,  and  XMapRaised,  but  cannot seem to get the lowest level 
  25.  window to display. 
  26.  
  27.     Effectively  the  way  I  create  the  window  heirarchy  is  with   the 
  28.  XCreateWindow() function call, where the window parameter that I  pass, is 
  29.  the returned value from  the previous call. Ie:
  30.  
  31.   
  32.      Window a, b, c;
  33.  
  34.      a = XCreateWindow( display,  root, ... );
  35.      b = XCreateWindow( display,  a,    ... );
  36.      c = XCreateWindow( display,  c,    ... );
  37.  
  38.      XMapRaised( display, c    );
  39.      XMapWindow( display, b    );
  40.      XMapWindow( display, a    );
  41.      XMapWindow( display, root );
  42.  
  43.  
  44.      In the code  above,  I have  found that windows 'a' and 'b' receive 
  45.  Expose events, but I cannot seem to get Expose events for 'c'. Is their 
  46.  something very obvious that I am overlooking.
  47.  
  48.  Thanks
  49.  Jim Carroll
  50.  
  51.