What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » SetControlText \n Help!

SetControlText \n Help!
Author: Message:
Suxsem
Junior Member
**


Posts: 66
Joined: Mar 2008
O.P. Huh?  SetControlText \n Help!
Hi!
i have an EditControl with this attributes:
<WantReturn>true</WantReturn>
<Multiline>true</Multiline>
if I write an return in this EditControl, when I go GetControlText the return is indicate with "\n"
but if a go fin.SetControlText('IDControl',"line1\nline2") the text is displayed in one line and the "\n" char is displayed with a square.
Help please!
(sorry for bad english :()
03-20-2008 01:04 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: SetControlText \n Help!
I noticed this before. New lines don't work in RichEditControls or RichStaticControls. I classed it as a limitation
<Eljay> "Problems encountered: shit blew up" :zippy:
03-20-2008 01:14 PM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: SetControlText \n Help!
I believe you need to change it to fin.SetControlText('IDControl',"line1\r\nline2").  The \r is a carage return while \n is a new line character.  This i a difference between unix/linux and windows based systems.  Windows uses \r\n with new lines (unix/linux uses just \n...).  If this doesn't work then could you please give use some more of your code and the code for the control so that we can test it ourselves to help you further.
[Image: markee.png]
03-20-2008 01:18 PM
Profile PM Find Quote Report
Suxsem
Junior Member
**


Posts: 66
Joined: Mar 2008
O.P. RE: SetControlText \n Help!
Very Thank!!!
wtih \r\n is all ok!
bye!
03-20-2008 01:23 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On