home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / tech / 5751 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.8 KB  |  37 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!hanauma.jpl.nasa.gov!hyc
  3. From: hyc@hanauma.jpl.nasa.gov (Howard Chu)
  4. Subject: Re: Scrollable list boxes
  5. Message-ID: <1992Nov22.083609.9378@elroy.jpl.nasa.gov>
  6. Sender: news@elroy.jpl.nasa.gov (Usenet)
  7. Nntp-Posting-Host: hanauma.jpl.nasa.gov
  8. Organization: SAR Systems Development & Processing, JPL
  9. References: <1992Nov12.140816.14051@aber.ac.uk>
  10. Date: Sun, 22 Nov 1992 08:36:09 GMT
  11. Lines: 24
  12.  
  13. In article <1992Nov12.140816.14051@aber.ac.uk> hrs@aber.ac.uk (Herbert Martin Sauro) writes:
  14. >I am writing an application were I need scrollable list boxes in dialog
  15. >boxes (eg. like the file selector list). Rather than write my own I was
  16. >wondering whether anybody has any code already written to do this? Failing
  17. >that what is the best strategy for writing a scrollable list? I have worked
  18. >out that in order to make the scrolling fast and smooth I need to do some
  19. >blitting, i.e.\ blit n-1 of the entries (n=no of items in scroll window)
  20. >and write out the new line either at the top or bottom of the
  21.  
  22. I've been thinking about that as well, surely this is an often-enough used
  23. bit of code that someone has published a standard way to do it... My
  24. approach was simply to create a box, then create a bunch of string objects
  25. as children of the box. Scrolling the text in the box is then only a matter
  26. of changing the string pointers and calling objc_draw to redraw the box.
  27.  
  28. >list. And what is the best strategy to write a smooth moving slider which
  29. >will sit next to the list box? I have managed to write a relatively
  30. >smooth moving slider but it's not perfect.
  31.  
  32. Did you already look at graf_slidebox in the AES? Probably a lot easier...
  33. -- 
  34.   -- Howard Chu @ Jet Propulsion Laboratory, Pasadena, CA
  35.  
  36. All true wisdom is conveyed in one-line witticisms.
  37.