Text Field Copy & Paste

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cookietran
Posts: 1
Joined: Fri Aug 21, 2020 4:19 am

Text Field Copy & Paste

Post by cookietran » Fri Aug 21, 2020 4:20 am

Does anyone have a workaround for Copy & Paste in text fields? I'm not using a native UI control as my text fields have to accommodate several lines of text and the native control is single line only?

Thanks

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Text Field Copy & Paste

Post by Klaus » Fri Aug 21, 2020 12:44 pm

Hi cookietrain,

welcome to the forum!
Does anyone have a workaround for Copy & Paste in text fields?
Nope this is only possible with native input fields!
But what about:

Code: Select all

...
mobilecontrolcreate "multiline", "lotsatext"
...
? 8)


Best

Klaus

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Text Field Copy & Paste

Post by jmburnod » Fri Aug 21, 2020 5:42 pm

sorry if i misunderstood but we can use copy paste with flds from a menu.
I have an edition menu with a customprop which store text copied. If this custom prop <> empty then item paste is black and I can paste content of customprop in target fld. Don't forget to set customprop to empty after paste :D
Kind regards
Jean-Marc
https://alternatic.ch

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Text Field Copy & Paste

Post by Klaus » Fri Aug 21, 2020 9:32 pm

So you are faking copy/paste on iOS?
Very clever, monsieur! :-)

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Text Field Copy & Paste

Post by jmburnod » Fri Aug 21, 2020 10:54 pm

So you are faking copy/paste on iOS?
Yes Sir. I didnt know that was impossible then i did it. :D
https://alternatic.ch

Post Reply

Return to “iOS Deployment”