select after the selectedText
Slava Paperno
slava at lexiconbridge.com
Wed Jul 6 03:10:46 EDT 2011
The selectedText doesn't work with Unicode.
I have a very similar thing working fine: I use "select after char -1 of
field X".
Slava
> -----Original Message-----
> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] On Behalf Of Richmond Mathewson
> Sent: Wednesday, July 06, 2011 2:54 AM
> To: How to use LiveCode
> Subject: select after the selectedText
>
> a.k.a. "Richmond's longest-lasting headache"
>
> imagine this sort of script:
>
> on mouseUp
> set the useUnicode to true
> set the unicodeText of the selectedText to numToChar(2340)
> select after the selectedText
> end mouseUp
>
> all looks straightforward (nicht?), but 'tis not to be . . . :(
>
> because select after the selectedText sends the cursor to the START
> of the unicodeText!
>
> let's try:
>
> on mouseUp
> set the useUnicode to true
> set the unicodeText of the selectedText to numToChar(2340)
> --select after the selectedText
> end mouseUp
>
> this results in exactly the same thing, which suggests select after the
> selectedText is "a dead duck"
>
> of course, some folks suggested I use select after fld "TiddleyPush"
when I
> raised this issue previously; but that is also no good as it is no use at
all for in-
> text editing.
>
> What I need is for the cursor to always remain right after the unicode
glyph that
> has just been entered.
>
> . . . drowning over here . . .
>
> Richmond.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list