home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18133 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.9 KB  |  42 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!elroy.jpl.nasa.gov!decwrl!concert!samba!usenet
  3. From: Bathsheba.Grossman@launchpad.unc.edu (Bathsheba Grossman)
  4. Subject: Re: Spurious invalidation
  5. Message-ID: <1992Nov7.221521.21889@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: lambada.oit.unc.edu
  8. Organization: University of North Carolina Extended Bulletin Board Service
  9. References: <1992Nov6.170232.21241@alw.nih.gov> <absurd-061192133636@seuss.apple.com> <1992Nov7.172136.7170@athena.mit.edu>
  10. Date: Sat, 7 Nov 1992 22:15:21 GMT
  11. Lines: 29
  12.  
  13. >>(Chris Spiral Catfish Tate) wrote:
  14. >>> Problem: calling SetCTitle() (and possibly SetCtlValue()) on controls in the
  15. >>> dialog is forcing an update.  This is pretty bad in my case, since redrawing
  16. >>> the dialog is rather time-consuming.
  17.  
  18. >>stick a little code at the beginning of your user item drawing procedure
  19. >>that makes sure that your user item intersects the union of the visRgn and
  20. >>the clipRgn; this way you can be sure that your user item actually
  21. >>needs to be redrawn before undertaking the task.
  22.  
  23. >>Tim Dierks
  24. >The region to check is the Intersection (SectRgn) (I-184) of the visRgn
  25. >& clipRgn.  The UnionRgn would (under most cases) not avoid any drawing.
  26.  
  27. You don't have to do this SectRgn if you're using BeginUpdate/EndUpdate
  28. because BeginUpdate does it for you and puts the result in the visRgn,
  29. then EndUpdate puts it back to normal.
  30. Also, using UpdtDialog (IV-60) or UpdtControl (IV-53) instead of
  31. DrawDialog/DrawControls might just solve the whole problem.  (There, you
  32. knew IV was good for something.)
  33.  
  34. -Sheba
  35.  
  36.  
  37. --
  38.    The opinions expressed are not necessarily those of the University of
  39.      North Carolina at Chapel Hill, the Campus Office for Information
  40.         Technology, or the Experimental Bulletin Board Service.
  41.            internet:  laUNChpad.unc.edu or 152.2.22.80
  42.