Actually, now that I have experimented more, I am finding that GetWordAtPosition() has a bug in it.
"This is some sample text that is
bonkers, but whatever."
In the example above, if I click on "whatever", then the function returns "whatever". Each word works fine when clicked on, except if the word is the first word on a new line. In that case, the func returns the word prior to the word you click on.
So if I click on "bonkers", then the func will return "is". Also, note, I did not put a new-line character in manually to bump bonkers to the next line, it just happened because of the textbox dimensions.
ArenMook, do you know what's happening here? Is there a fix that I can try?
Thanks!