Shoutbox

[?] RichEditControl - WantReturn - 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: [?] RichEditControl - WantReturn (/showthread.php?tid=77404)

[?] RichEditControl - WantReturn by Spunky on 09-12-2007 at 04:28 PM

Ok, so i've set a text box to WantReturn, but how do I get it to perform the same code as clicking the OK button for example?


RE: [?] RichEditControl - WantReturn by foaly on 09-12-2007 at 05:03 PM

you could use something like

code:
function OngciEvent_EditTextChanged(wnd,ic){
    var str =""+wnd.GetControlText(ic).toLowerCase();
    if(str.search("\n")>=0){ //do thingies
}}
there probably is a nicer way though...
RE: [?] RichEditControl - WantReturn by Spunky on 09-12-2007 at 05:04 PM

that should do fine for now though. thanks :p