forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Multi style edit element and @cr()

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Thu Feb 05, 2009 5:12 am    Post subject: Multi style edit element and @cr() Reply with quote

I'm sure I've seen this before Rolling Eyes

I'm putting some multi line text in a variable and then setting a Multi style edit element with the variable. But those darn boxes are showing up where I use a carridge return "@cr()" or new line "@chr(10)"

Anyone remember the fix for this???
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Thu Feb 05, 2009 2:12 pm    Post subject: Reply with quote

Did you try @chr(13)@chr(10) ?
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Thu Feb 05, 2009 5:30 pm    Post subject: Reply with quote

Hiya P Smile

Yes, I tried that and the element showed two boxes and still had everything on one line. (Although it was wrapped).

It works for a list but a list won't give me the options I need.
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Feb 05, 2009 6:53 pm    Post subject: Reply with quote

Well, my workaround was this:

WINDOW SETTEXT,@winexists(~EDIT1),%%YourVariableHere

But I also will add it to a list, then do this:

LIST CREATE,1
LIST ADD,1,%%YourVariableHere
DIALOG SET,EDIT1,@text(1)

If using the list doesn't work, then I'll use the SETTEXT up there.

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Thu Feb 05, 2009 7:03 pm    Post subject: Reply with quote

Hi guys: Very Happy

List add not work, but list append does it:

Code:
  %a = line #1@cr()line #2

  DIALOG CREATE,New Dialog,-1,0,510,160
  DIALOG ADD,EDIT,EDIT1,14,10,180,126,,,MULTI
  DIALOG SHOW

  LIST CREATE,1
  LIST Append,1,%a
  DIALOG SET,EDIT1,@text(1)

  wait 5


Good luck Wink

____________

uVeDeSe: http://www.uvedese.es
____________
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Feb 05, 2009 7:18 pm    Post subject: Reply with quote

Am I missing something or does this work?
Code:

  DIALOG CREATE,New Dialog,-1,0,453,316
  DIALOG ADD,EDIT,EDIT1,67,71,308,161,,,MULTI
  DIALOG SHOW
  %%test = Testing Multi@cr()@lf()line edit
  dialog set,edit1,%%test
:Evloop
  wait event
  goto @event()
:Close
  exit

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Thu Feb 05, 2009 11:13 pm    Post subject: Reply with quote

SS

That's weird @cr()@lf() worked but @chr(13)@chr(10) doesn't even though it is the same thing.

huh Question
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group