Index bounds of a textarea
I would like to be able to determine the character index of the first(upper right) visible character in a textArea as well as the last (lower left). Understanding that lower-left may be more complex, Im starting with upper-right. Im using the mx_internal::getTextField() method and then using getCharIndexAtPoint(x,y). Initially I chose 1,1 for x and y but this seems to always return an index of -1. If I inflate x an y to 3,3 I get an index of 0 which initially makes sense. The problem is that when I put enough data in and scroll the text area, the returned index remain 0.
Any thoughts, tips, or pointers?
Bill
|