Article View: comp.sys.amiga.tech
Article #10322Scroll bars for word-wrapped text?
From: Mike (I'll think of something ye...
Date: Mon, 21 Nov 1988 00:12
Date: Mon, 21 Nov 1988 00:12
22 lines
1481 bytes
1481 bytes
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, <mike -- The weather is here, I wish you were beautiful. Mike Meyer My thoughts aren't too clear, but don't run away. mwm@berkeley.edu My girlfriend's a bore, my job is too dutiful. ucbvax!mwm Hell nobody's perfect, would you like to play? mwm@ucbjade.BITNET
Technical Details
Message-ID:
<17286@agate.BERKELEY.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!agate!eris.berkeley.edu!mwmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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