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

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!swrinde!emory!europa.asd.contel.com!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!lunic!my!sm-emac15.sm.luth.se!matti
  2. From: matti@my.sm.luth.se (Matti Larborn)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Help updating windows
  5. Message-ID: <1338@my.sm.luth.se>
  6. Date: 5 Nov 92 11:51:28 GMT
  7. Sender: news@sm.luth.se
  8. Organization: Lule} University
  9. Lines: 23
  10. X-UserAgent: Nuntius v1.1.1d11
  11. X-XXMessage-ID: <A71EC94D4501037B@sm-emac15.sm.luth.se>
  12. X-XXDate: Thu, 5 Nov 92 11:51:25 GMT
  13.  
  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.     1) Should I use OpenPicture and then ClosePicture to create a window
  25. picture? Then SetWindowPic to bind my window to the pict. Would this do
  26. it?
  27.     2) Or must i use OpenPicture and ClosePicture every time I draw in the
  28. window?
  29.     3) Something else...
  30.  
  31. I am using Think Pascal 4.0.1
  32.  
  33. The first approach makes my application crash on the ClosePicture call!
  34.  
  35.  
  36.     --Matti Larborn, Sweden.
  37.