home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sun / misc / 6204 < prev    next >
Encoding:
Text File  |  1993-01-10  |  1.2 KB  |  28 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!island!coney!hue
  3. From: hue@island.COM (Pond Scum)
  4. Subject: Re: problem with repaint procedures in XView
  5. Message-ID: <hue.726653246@coney>
  6. Sender: usenet@island.COM (The Usenet mail target)
  7. Organization: Island Graphics Corp.
  8. References: <1993Jan5.092110.165445@dstos3.dsto.gov.au> <1ik60lINN22q@peanuts.informatik.uni-tuebingen.de>
  9. Date: Sun, 10 Jan 1993 08:07:26 GMT
  10. Lines: 16
  11.  
  12. myka@informatik.uni-tuebingen.de (Andreas Myka) writes:
  13. >Of course, if the canvas is retained by the X server,
  14. >this only leads to annoying results in case of
  15. >a complete refresh. In this case all the canvases
  16. >are cleared but not repainted.
  17.  
  18. I bet I know what your problem is.  Are you clearing with WINDOW_CONSUME_EVENTS,
  19. WIN_NO_EVENTS, and then setting it again with a list of events to consume?
  20. If so, you are doing what I did.  This worked under SunView, but doesn't
  21. work under XView.  I think you need to enable a few other things so the
  22. repaint requests come through.  You either have to figure out which other
  23. events to add (probably WIN_REPAINT and WIN_GRAPHICS_EXPOSE at least),
  24. or use WINDOW_CONSUME_EVENT and WINDOW_IGNORE_EVENT to add or remove
  25. individual types of events.  I chose to do the latter.
  26.  
  27. -Jonathan        hue@island.COM
  28.