mouseText with native text controls
Posted: Mon Jun 01, 2015 1:11 pm
With iphoneControlCreate "multiline" I find myself in the best of worlds, scrolling is perfect, I can change the text content dynamically, have a voice speaking it, a dictionnary... etc.
If I click inside the native sector it's easy to select a word with the special menu appearing (select, select all, speak) but to get the selection for LC the only way I've found is to use a button with something like this:
put iphoneControlGet ("Input", "selectedRange") into myTest
My question is: is it possible to obtain the same result in one shot, touching only the native sector, and obtain what we get with mouseText on a normal field ?
I've tried the "dataDetectorTypes" option, hoping it would have been a good idea, but when I set links in the text of the original field, I don't see them inside the native text area:
iphoneControlSet "Input", "text", field ("FieldWithLinks")
I played also with on mouseDown & on mouseUp in the card, using a " put false into isScrolling" and trying to intercept something but no chance...
I even tried a transparent substack sending a click to the main stack... as I don't like the "there is nothing to be done about it" attitude...
an idea ?
Thanks a lot in advance for your answer(s) !
If I click inside the native sector it's easy to select a word with the special menu appearing (select, select all, speak) but to get the selection for LC the only way I've found is to use a button with something like this:
put iphoneControlGet ("Input", "selectedRange") into myTest
My question is: is it possible to obtain the same result in one shot, touching only the native sector, and obtain what we get with mouseText on a normal field ?
I've tried the "dataDetectorTypes" option, hoping it would have been a good idea, but when I set links in the text of the original field, I don't see them inside the native text area:
iphoneControlSet "Input", "text", field ("FieldWithLinks")
I played also with on mouseDown & on mouseUp in the card, using a " put false into isScrolling" and trying to intercept something but no chance...
I even tried a transparent substack sending a click to the main stack... as I don't like the "there is nothing to be done about it" attitude...
an idea ?
Thanks a lot in advance for your answer(s) !