home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20678 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.3 KB

  1. Path: sparky!uunet!gatech!rutgers!spcvxb!4carroll_j
  2. From: 4carroll_j@spcvxb.spc.edu
  3. Newsgroups: comp.windows.x
  4. Subject: How to get Expose events
  5. Message-ID: <1992Dec31.172012.4795@spcvxb.spc.edu>
  6. Date: 31 Dec 92 22:20:12 GMT
  7. Organization: St. Peter's College, US
  8. Lines: 33
  9.  
  10.  
  11.  Hi,
  12.  
  13.     I am having some  difficulties  with  XMapWindow  amd  receiving  Expose 
  14.  events.  I have a window heirarchy that consists of four windows, where the 
  15.  first window is  root.  I  have  tried  every  combination  of  XMapWindow, 
  16.  XMapSubwindows,  and  XMapRaised,  but  cannot seem to get the lowest level 
  17.  window to display. 
  18.  
  19.     Effectively  the  way  I  create  the  window  heirarchy  is  with   the 
  20.  XCreateWindow() function call, where the window parameter that I  pass, is 
  21.  the returned value from  the previous call. Ie:
  22.  
  23.   
  24.      Window a, b, c;
  25.  
  26.      a = XCreateWindow( display,  root, ... );
  27.      b = XCreateWindow( display,  a,    ... );
  28.      c = XCreateWindow( display,  c,    ... );
  29.  
  30.      XMapRaised( display, c    );
  31.      XMapWindow( display, b    );
  32.      XMapWindow( display, a    );
  33.      XMapWindow( display, root );
  34.  
  35.  
  36.      In the code  above,  I have  found that windows 'a' and 'b' receive 
  37.  Expose events, but I cannot seem to get Expose events for 'c'. Is their 
  38.  something very obvious that I am overlooking.
  39.  
  40.  Thanks
  41.  Jim Carroll
  42.  
  43.