FROM : Cameron Hayne
DATE : Tue Nov 19 11:10:05 2002
On 19/11/02 1:37 pm, "Brian Bergstrand" <<email_removed>> wrote:
> I still don't know how to do the continuous scrolling thing though.
> Right now, when all of the text has been scrolled, it "jumps" back to
> the beginning, instead of continuing in a loop manner. Quite
> noticeable, but it works.
One possible way would be to have all your text in a circular buffer - e.g.
in an array, one line per element. Then, each time the timer fires, you move
all the text elements that have scrolled off the top to the end of the array
and remove them from the front of the array.
There's probably a better way but that's one way to do it.
--
Cameron Hayne (<email_removed>)
Hayne of Tintagel
DATE : Tue Nov 19 11:10:05 2002
On 19/11/02 1:37 pm, "Brian Bergstrand" <<email_removed>> wrote:
> I still don't know how to do the continuous scrolling thing though.
> Right now, when all of the text has been scrolled, it "jumps" back to
> the beginning, instead of continuing in a loop manner. Quite
> noticeable, but it works.
One possible way would be to have all your text in a circular buffer - e.g.
in an array, one line per element. Then, each time the timer fires, you move
all the text elements that have scrolled off the top to the end of the array
and remove them from the front of the array.
There's probably a better way but that's one way to do it.
--
Cameron Hayne (<email_removed>)
Hayne of Tintagel
| Related mails | Author | Date |
|---|---|---|
| Brian Bergstrand | Nov 18, 17:12 | |
| Michael Mulligan | Nov 18, 18:04 | |
| Ryan Z. Hale | Nov 18, 20:43 | |
| Ryan Z. Hale | Nov 18, 20:44 | |
| Brian Bergstrand | Nov 19, 10:45 | |
| Cameron Hayne | Nov 19, 11:10 | |
| David Sinclair | Nov 19, 11:58 | |
| Andreas Mayer | Nov 19, 13:51 |






Cocoa mail archive

