Would someone please share their script or strategy for scrolling a *text* member so that member.word[X] becomes visible? Thanks!
mScrollToWord member("myText"), 10
on mScrollToWord textmember, whichWord
whichChar = textmember.word[1 .. whichWord].char.count
charHeight = textmember.fixedlinespace
if ((voidP(charHeight)) or (charHeight = 0)) then charHeight = textmember.char[whichChar].fontsize
textmember.scrolltop = (textmember.charPosToLoc(whichChar))[2] - charHeight
end
if you have longuish text members, than you should take into consideration, to use James Newtons bugfix for the scrolltop bug of long text members.
--
||| ażex -- [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]