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