Shoutbox

[?] Line breaks in a (Rich)EditControl - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] Line breaks in a (Rich)EditControl (/showthread.php?tid=66469)

[?] Line breaks in a (Rich)EditControl by Matti on 09-20-2006 at 04:32 PM

How can I make a RichEditControl (or EditControl) which allows the user to enter line breaks and tab indents? So, when the user presses [TAB] in the control, a tab is added.

Anyone knows how? :)


RE: [?] Line breaks in a (Rich)EditControl by Matti on 09-20-2006 at 06:33 PM

BUMP!
Anyone? I really need it. :'(


RE: [?] Line breaks in a (Rich)EditControl by vikke on 09-20-2006 at 06:50 PM

Multiline something?


RE: [?] Line breaks in a (Rich)EditControl by Matti on 09-20-2006 at 06:54 PM

Already tried, but that would just make the control capable of containing line breaks, not letting the user enter them. :-/


RE: [?] Line breaks in a (Rich)EditControl by Eljay on 09-20-2006 at 06:55 PM

For multiline you must add <WantReturn>true</WantReturn> into the <Attributes> tag of the control.


RE: [?] Line breaks in a (Rich)EditControl by Matti on 09-20-2006 at 07:02 PM

quote:
Originally posted by Eljay
For multiline you must add <WantReturn>true</WantReturn> into the <Attributes> tag of the control.
I knew that had something to do with it... Thank you! :D
And is there a way to make tabs work? :)
RE: [?] Line breaks in a (Rich)EditControl by CookieRevised on 09-21-2006 at 09:14 AM

A tab is usually for switching between controls. CTRL-Tab should be used for a tabular character in controls where you can enter text.

(just as CTRL-enter is usually for a carriage return)