You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by santanu4ver <sa...@gmail.com> on 2014/06/23 12:00:00 UTC
Move mouse cursor to specific location in TextInput
Hi,
How can I move mouse cursor at a specific position in a TextInput component
by script. The following seems never works as it did with Adobe SDK:
input.setFocus();
input.selectRange(3, 3);
The above only selects the whole text in TextInput component.
Thanks.
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Move-mouse-cursor-to-specific-location-in-TextInput-tp6931.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Move mouse cursor to specific location in TextInput
Posted by Alex Harui <ah...@adobe.com>.
Show the code you tried.
On 7/9/14 4:44 AM, "santanu4ver" <sa...@gmail.com> wrote:
>Hi,
>
>I've tried with callLater() but its not working.
>
>Thanks.
>
>
>Regards,
>
>Santanu
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Move-mouse-cursor-to-specif
>ic-location-in-TextInput-tp6931p7214.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Move mouse cursor to specific location in TextInput
Posted by santanu4ver <sa...@gmail.com>.
Hi,
I've tried with callLater() but its not working.
Thanks.
Regards,
Santanu
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Move-mouse-cursor-to-specific-location-in-TextInput-tp6931p7214.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Move mouse cursor to specific location in TextInput
Posted by Alex Harui <ah...@adobe.com>.
This is probably more fallout from the change to TextInput to defer actual
focus. Try using callLater to call selectRange or hook up selectRange to
the focusIn event.
-Alex
On 6/23/14 3:00 AM, "santanu4ver" <sa...@gmail.com> wrote:
>Hi,
>
>How can I move mouse cursor at a specific position in a TextInput
>component
>by script. The following seems never works as it did with Adobe SDK:
>
>input.setFocus();
>input.selectRange(3, 3);
>
>The above only selects the whole text in TextInput component.
>
>Thanks.
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Move-mouse-cursor-to-specif
>ic-location-in-TextInput-tp6931.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.