Ralf Beckers <[EMAIL PROTECTED]> writes:

> I write some text to the window, when a user taps onto the screen, I
> scroll the text up/down a line. For archiving this is do the following:
> 
> - setting the text/lookupbuffers
> - getting a new line of text
> - erasing the screen
> - writing text in a loop onto the window.
> 
> But this is rather to slow.
> 
> Is there anyting like double buffering or s.th else, what would make it
> more "fluid" to the user?

        Double-buffering would have a smoother appearance than what
you're doing, but it would not be faster.

        Look at what MemoPad does*. Instead of redrawing the entire
screen, it does a window-copy of most of the screen to make room for
the new text, and then writes the new line. It requires some
bookkeeping, but it is a lot faster. I successfully borrowed the idea
(and quite a bit of code structure) to do the same thing in one of my
applications.

* Having good example code is wonderful. I don't know if I can say
  that enough times.

        - Nathan

Reply via email to