Here are some suggestions. - Create a series of data structures to hold the logical content of your text. This includes metric information of the width and height of the text.
- Create a double buffer system to that will be used to display the drawn text to the canvas (don't draw directly to the canvas). This will pretty much eliminate flickering. This double buffer should be the size of your canvas and resized when the buffer canvas size changes. - When the text changes or is scrolled, redraw the text to the double buffer and then blit it out to the canvas each time. This will minimize memory usage. - Once you calculate a value such as the width of a line, cache it internally. This will really speed things up. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
