You need to store the text and formatting information in a buffer, and then render them offset to your scroll position.
Either that, or render the whole thing to an offscreen picture, and then only draw the part of the image you want, offset at the top by the scroll position e.g. g.drawpicture myRenderedImage,0,0,graphics.width,graphics,height, 0,scrollposition, myRenderedImage.width, graphics.height - Tom On 19/03/2007, at 2:28 PM, RBNUBE wrote: > I am trying to create one that will allow me to display formatted > text and > that will be scrollable. > > I have a decent start, but cannot figure out how to extend the > height of the > canvas to display wrapped text that would ordinarily scroll off the > bottom > of the canvas. > > > Thanks for any input. > > RB5.5.5 and a mostly unused copy of 2006r2. > WinXP, 2.2 GHz, 2G RAM > > > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
