home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18086 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.5 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!caen!sol.ctr.columbia.edu!ira.uka.de!uka!s_titz
  2. From: s_titz@ira.uka.de (Olaf Titz)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Help updating windows
  5. Message-ID: <1de8rtINNe7e@iraul1.ira.uka.de>
  6. Date: 6 Nov 92 17:09:17 GMT
  7. Article-I.D.: iraul1.1de8rtINNe7e
  8. References: <1338@my.sm.luth.se>
  9. Organization: Fachschaft math/inf, Uni Karlsruhe, FRG
  10. Lines: 29
  11. NNTP-Posting-Host: irau32.ira.uka.de
  12.  
  13. In article <1338@my.sm.luth.se> matti@my.sm.luth.se (Matti Larborn) writes:
  14. >You can use two updating modes for windows in the toolbox.
  15. >
  16. >    1) Each time an update event occurs you redraw the content of the window
  17. >requested.
  18. >
  19. >    2) You set the window picture to a pict. The toolbox will now redraw the
  20. >windows contents each time it is needed.
  21. >
  22. >How should this second approach be implemented?
  23.  
  24. It should not be implemented at all if you want a window changing
  25. regularly. The window picture is intended mainly for the purpose that
  26. it be set to a fixed thing, like a splash/info/About/background
  27. window.
  28.  
  29. For regular document-displaying windows, the first method should be
  30. used. If you worry about performance: Rebuilding a picture in
  31. background and then redrawing it (as you suggested) takes more memory
  32. and CPU time and is therefore LESS efficient than drawing the picture
  33. 'live' while updating.
  34.  
  35. olaf
  36.  
  37. -- 
  38. -- 
  39.     o     Olaf Titz - comp.sc.student - univ of karlsruhe - germany
  40.  _ /<_    s_titz@iravcl.ira.uka.de - uknf@dkauni2.bitnet - praetorius@irc
  41. (_)>(_)   +49-721-60439 - did i forget something?
  42.