Re: How do I change the textcolor of the selected text in a native iOS field?

2021-04-15 Thread Ingar Roggen via use-livecode
From: use-livecode on behalf of J. Landman Gay via use-livecode Sent: 15 April 2021 21:44 To: How to use LiveCode Cc: J. Landman Gay Subject: Re: How do I change the textcolor of the selected text in a native iOS field? Yeah, I'm afraid you're right.

Re: How do I change the textcolor of the selected text in a native iOS field?

2021-04-15 Thread J. Landman Gay via use-livecode
Yeah, I'm afraid you're right. I don't see any way set set a property on a range of characters in a native input control. If the app doesn't strictly need copy/paste you could probably use a LC field instead. On 4/14/21 12:22 PM, William de Smet via use-livecode wrote: Thanks for pointing me

Re: How do I change the textcolor of the selected text in a native iOS field?

2021-04-14 Thread William de Smet via use-livecode
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 selectedRange. greetings, William

Re: How do I change the textcolor of the selected text in a native iOS field?

2021-04-13 Thread J. Landman Gay via use-livecode
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.

How do I change the textcolor of the selected text in a native iOS field?

2021-04-13 Thread William de Smet via use-livecode
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. How do I adapt this code I made? (this obviously only returns the first char of the text in red) - on changeColor mobileControlDo "field1", "focus", true put