home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / openloo / 4422 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.6 KB

  1. Path: sparky!uunet!ogicse!decwrl!gossip.pyramid.com!pyramid!unify!openlook!openlook-request
  2. From: merlyn@usl.com
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: OLIT PopupWindowShell woes
  5. Message-ID: <jutcrfs@openlook.Unify.Com>
  6. Date: 9 Nov 92 14:51:00 GMT
  7. Article-I.D.: openlook.jutcrfs
  8. Sender: news@Unify.Com
  9. Distribution: world
  10. Lines: 37
  11.  
  12. >> In an OLIT application, I am creating a PopupWindowShell
  13. >> which, when realized, obscures a StaticText widget.
  14. >> A popup callback does a setvalues on the StaticText background
  15. >> and string resources.  
  16. >> 
  17. >> When the popup goes away, the underlying StaticText is
  18. >> unchanged:  Neither the background color nor the
  19. >> text are unchanged.  By temporarily obscuring the
  20. >> StaticText with another window and uncovering it, presto,
  21. >> the update occurs.
  22.  
  23. > This is a bug in the Sun OpenWindows server (xnews).
  24. > 1056492 Widget doesn't redisplay new image after being unobscured
  25. > ...
  26. > 1101123 x11news server fails to generate correct expose events with popup window
  27. > ...
  28. > Popup windows use backing store (y'know, so that they
  29. > don't have to refresh what lies underneath).
  30. > Well, if you modify the appearance of something
  31. > that is underneath a popup window then the 
  32. > beastie under that popup does not get an
  33. > expose event.
  34.  
  35. In summary (if I read this correctly): (1) The xnews server has
  36. trouble with save-unders. (2) The PopupWindow (and any other
  37. windows subclassed from TransientShell or OverrideShell) by
  38. default turn on save-unders.
  39.  
  40. A work-around is to turn off the save-unders, by setting XtNsaveUnders
  41. on the PopupWindow widget to False:
  42.  
  43. *PopupWindowShell.saveUnders: false
  44.  
  45.  
  46. Steve Humphrey
  47. UNIX System Laboratories
  48.