I have a little text search handler for a scrolling field cast member.
After searching for a keyword, I want the textfield to scroll to the line where the
keyword is in, but I can't get it right because of the word wrap. in the text field.
----------
on testLines theText, keyWord
set numOfLines = the number of lines in myTextMember.text
repeat with whichLine = 1 to numOfLines
set theLine = line whichLine of myTextfieldMember.text
if theLine contains keyWord then
put whichLine +1 into member "display"
startOfString = myTextfieldMember.linePosToLocV(whichLine +1)
myTextMember.scrollTop = startOfString
end if
end repeat
end
----------
How can I get this right?
Frits
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]