home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / apple2 / 19768 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.9 KB

  1. Path: sparky!uunet!usc!wupost!waikato.ac.nz!comp.vuw.ac.nz!actrix!David.Empson
  2. Newsgroups: comp.sys.apple2
  3. Subject: Re: List Manager Optimisations - Programmer - Help
  4. Message-ID: <1992Sep2.110542.26629@actrix.gen.nz>
  5. From: David.Empson@bbs.actrix.gen.nz
  6. Date: Wed, 2 Sep 1992 11:05:42 GMT
  7. Sender: David.Empson@actrix.gen.nz (David Empson)
  8. References: <1992Sep1.224906.11886@fawlty.towers.oz.au>
  9. Organization: Actrix Information Exchange
  10. Lines: 36
  11.  
  12. In article <1992Sep1.224906.11886@fawlty.towers.oz.au> johnmac@fawlty.towers.oz.au (John MacLean) writes:
  13. > This is one for comp.sys.apple2.programmer :
  14. > INFO:
  15. > [list manager just scrolls and redraws new items]
  16. > PROBLEM:
  17. > I have a list box where this optimisation doesn't work (because each
  18. > list item is drawn with a custom "item draw" routine which modifies
  19. > the corresponding palettes - the scrolling does not scroll the palettes
  20. > of course, only the data).
  21. > QUESTIONS:
  22. > I find it hard to believe that such an obvious problem has always been
  23. > in my software without anyone reporting it previously.
  24.  
  25. According to the Toolbox ERS from the Golden Master CD-ROM (no, I
  26. don't have the System 6 Programmers Reference, yet...), the list
  27. manager doesn't bother to call the draw routine for list members that
  28. will be completely clipped.
  29.  
  30. Before doing this, it calls ScrollRect to scroll the list to its new
  31. position (see IIgs Technical Note #74).  Prior to System 6, the
  32. listDraw routine was called for all members INCLUDING those which had
  33. scrolled.  This is no longer done - system 6 only calls listDraw for
  34. the newly visible items.
  35.  
  36.  
  37. You might be able to get around it by invalidating the entire list
  38. rectangle, forcing all items to be redrawn.  You would need to trigger
  39. this whenever the list was scrolled, and it would look ugly!
  40. -- 
  41. David Empson
  42.  
  43. Internet: David.Empson@bbs.actrix.gen.nz    EMPSON_D@kosmos.wcc.govt.nz
  44. Snail mail: P.O. Box 27-103, Wellington, New Zealand
  45.