I am writing a small B4A app, just for personal use, that loads and views a text file.
I have a TextEdit added to the panel of a ScrollView.
I read a text file into the TextEdit as a string. This will display as multiple scrolling pages.
I would like to find the position of a word and scroll to that area. I can use IndexOf to find a word and to get the position within the text. Can I relate that position to the ScrollView position to scroll to?
Or, is there a better way?
Thanks.
I have a TextEdit added to the panel of a ScrollView.
I read a text file into the TextEdit as a string. This will display as multiple scrolling pages.
I would like to find the position of a word and scroll to that area. I can use IndexOf to find a word and to get the position within the text. Can I relate that position to the ScrollView position to scroll to?
Or, is there a better way?
Thanks.