Message Box Input - plain text

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
willcate
Posts: 7
Joined: Sun Jul 06, 2014 8:44 pm

Message Box Input - plain text

Post by willcate » Sat Jul 12, 2014 9:22 pm

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Message Box Input - plain text

Post by Simon » Sat Jul 12, 2014 9:47 pm

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Message Box Input - plain text

Post by dunbarx » Sat Jul 12, 2014 10:40 pm

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Message Box Input - plain text

Post by Simon » Sat Jul 12, 2014 10:53 pm

Nice one, Craig!

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Message Box Input - plain text

Post by Klaus » Thu Jul 17, 2014 1:18 pm

You could also use menu: Edit -> Paste unformatted resp. the appropriate keyboard shortcut 8)

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Message Box Input - plain text

Post by Simon » Thu Jul 17, 2014 1:30 pm

Wow.
And it has been there all the time.
Four fingers... Really?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Message Box Input - plain text

Post by Klaus » Thu Jul 17, 2014 3:28 pm

Simon wrote:Four fingers... Really?
Yep, just like in e.g. TextEdit on OS X! :D

Post Reply