Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!agate!eris.berkeley.edu!mwm From: mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) Newsgroups: comp.sys.amiga.tech Subject: Scroll bars for word-wrapped text? Message-ID: <17286@agate.BERKELEY.EDU> Date: 21 Nov 88 00:12:25 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) Organization: Missionaria Phonibalonica Lines: 22 I've got an application that needs to put text in a window - wrapped n word boundaries, and then allow the user to page back & forth through the text. Scroll bars are the obvious solution. But I don't see an easy way to make them work "right". The problem is the word wrapping - I don't know how many lines (or characters) will fit in the window until after I've displayed it. Currently, I just display the text starting where I left off, and then resize the scroll bar gadget after it's displayed. This produces some interesting (and predictable) results. I know there's gotta be a way to do this so the scroll bar works correctly. Anyone got any suggestions? Or better yet, code? Thanx,