Okay, this works, I also got the autscrolling when you select text and run
off the view rect. Now I have a scrollbars max value set to the number of
lines in the edit field. I use this:
CALL SETCTLMAX(gCntlHndl&, gTeHndl&..tenlines%)
But now I have the problem of updating the scrollbar when it does automatic
scrolling. Is there a way to get the line the I beam is currently at? Then
I could maybe do something like:
currentLine% = gTeHndl&..xxxxx% 'get the currrent line
CALL SETCTLVALUE(gCntlHndl, currentLine%
I'm thinking that maybe I have to get the current position. And then the
Linestarts. And maybe do some math. BUt I don't know exactly. Any help here
would be great.
thanks.
-Forrest Blanton
PS Do you have to buy the ThinkReference? I figure that my IM isn't the
latest 'cause it doesn't have some toolbox rputines you guys have been
giving me. LIke for example my IM didn't have CALL AUTOVIEW.
>
>CALL TEAUTOVIEW(_TRUE,teHndl&):' enable/disable auto scrolling
>
>Think Reference has a pretty good reference section on TextEdit.
*************************************************************
* --Friends-- *
* *
* Had we never met, *
* I would've just longed for her. *
* But now that we have, *
* I couldn't live without her. *
* *
* -Tonami *
*************************************************************