| View previous topic :: View next topic |
| Author |
Message |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu Feb 05, 2009 5:12 am Post subject: Multi style edit element and @cr() |
|
|
I'm sure I've seen this before
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Feb 05, 2009 2:12 pm Post subject: |
|
|
| Did you try @chr(13)@chr(10) ? |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu Feb 05, 2009 5:30 pm Post subject: |
|
|
Hiya P
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2009 6:53 pm Post subject: |
|
|
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 |
|
 |
uvedese Contributor


Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Thu Feb 05, 2009 7:03 pm Post subject: |
|
|
Hi guys:
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
____________
uVeDeSe: http://www.uvedese.es
____________ |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Feb 05, 2009 7:18 pm Post subject: |
|
|
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 |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu Feb 05, 2009 11:13 pm Post subject: |
|
|
SS
That's weird @cr()@lf() worked but @chr(13)@chr(10) doesn't even though it is the same thing.
huh  |
|
| Back to top |
|
 |
|
|
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
|
|