How do I change the textcolor of the selected text in a native iOS field?
William de Smet
williamdesmet at gmail.com
Wed Apr 14 13:22:39 EDT 2021
Thanks for pointing me to "selectedRange".
put mobileControlGet ("field1", "selectedRange") into myTest
-- answer myTest //gives range 1,5
mobileControlSet "field1", "textColor", "255,0,0"
This doesn't work because all text will be colored and not just the
Op di 13 apr. 2021 om 21:11 schreef J. Landman Gay via use-livecode <
use-livecode at lists.runrev.com>:
> On 4/13/21 6:15 AM, William de Smet via use-livecode wrote:
> > Hi there,
> > How do I get the selectedText of a native iOS field?
> > I want to change the color of the text selection in the field.
> I think you want "selectedRange" which returns the start index and the
> length of the text
> selected. Judging from the dictionary it looks like it only works on
> multiline fields.
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode