Page 1 of 1
Message Box Input - plain text
Posted: Sat Jul 12, 2014 9:22 pm
by willcate
This is a small thing, but I wish that any text which got pasted into Message Box's input field was automatically converted to plain text. If I paste something in from, say, the web, or a white-on-black code editor, then I can't read what I've pasted into Message. It's a pain! Wouldn't this be an easy thing to fix?
Thanks for reading; I'm new to the forum, but not to LiveCloud, been loving it for years. -- WC
Re: Message Box Input - plain text
Posted: Sat Jul 12, 2014 9:47 pm
by Simon
Hi WC,
Welcome to the forum!
I'm with you on this but more with the Contents of a field.
Any formatted text will hold the format, but that is probably so embedded in liveCode (or Hyper-card) users that it's seen as a benefit.
Simon
Re: Message Box Input - plain text
Posted: Sat Jul 12, 2014 10:40 pm
by dunbarx
Hi.
It would be possible to modify the script of the message box. It is only a mortal stack, after all. But this is not for the faint-hearted. There are layers of complexity in that little gadget.
Would you be amenable to managing this outside? Like setting up a functionKey that:
Code: Select all
set the clipboardData to the clipBoardData["text"]
Something like that, where you simply press a key to transform styled text to plain text, so when you paste, it is in plain style?
Craig Newman
Re: Message Box Input - plain text
Posted: Sat Jul 12, 2014 10:53 pm
by Simon
Nice one, Craig!
Simon
Re: Message Box Input - plain text
Posted: Thu Jul 17, 2014 1:18 pm
by Klaus
You could also use menu: Edit -> Paste unformatted resp. the appropriate keyboard shortcut

Re: Message Box Input - plain text
Posted: Thu Jul 17, 2014 1:30 pm
by Simon
Wow.
And it has been there all the time.
Four fingers... Really?
Simon
Re: Message Box Input - plain text
Posted: Thu Jul 17, 2014 3:28 pm
by Klaus
Simon wrote:Four fingers... Really?
Yep, just like in e.g. TextEdit on OS X!
