Jumping cursors
J. Landman Gay
jacque at hyperactivesw.com
Wed Jan 4 16:26:48 EST 2017
On 1/4/17 10:33 AM, Richmond Mathewson wrote:
>
> set the text of the selectedText to numToCodePoint(0xFF001)
>
> and it does do what it is meant to do; i.e. pops character 0xFF001 at
> the end of the line in my
> text entry field, but I really want the cursor to end up after that
> character not in front of it
I'm a little surprised that works at all. The "selectedtext" returns a
string, not a position. I'd use "selectedChunk" which would provide a
character location, enabling you to set the cursor at a specific position.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list