| View previous topic :: View next topic |
| Author |
Message |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Tue Nov 19, 2002 1:12 pm Post subject: Getting wrap on the LIST Dialog Element.... |
|
|
OK, so I am loading info into a LIST dialog element, but I need it to wrap like in a multi line Edit dialog element. Any ideas?
Thanks gang! |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Nov 19, 2002 1:42 pm Post subject: |
|
|
I may need to be corrected on this but i don't think that you can wrap text in a list - otherwise it wouldn't work as a list, if you think about it, because in a list, each line represents an entry...how then could it be wrapped and still represent an entry?!?!?
May be someone who knows for sure can answer,
Serge _________________
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Tue Nov 19, 2002 1:53 pm Post subject: |
|
|
While there isn't a "WRAP" style for lists, you can
insert carriage returns and line feeds in a string
before putting it in a list (which basically does the
same thing). Here's a rough example:
http://www.vdsworld.com/forum/viewtopic.php?t=931
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Nov 19, 2002 1:58 pm Post subject: |
|
|
You can make a repeat loop that checks for the lenghts of lines, and breaks them of at, for example, 100 characters...
I've made this code at school, so I haven't tested it...
| Code: | %%wrap = 100
%%text = @text(1)
list close,1
list create,1
repeat
list add,1,@substr(%%text,@prod(%%wrap,%z),@fadd(@prod(%%wrap,%z),%%wrap))
%z = @succ(%z)
until @greater(@prod(%%wrap,%z),@len(%%text1))
info This is the new text: @cr()@text(1) |
Btw. Tommy, can we use the VDS tag already? _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
|
| Back to top |
|
 |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Tue Nov 19, 2002 4:40 pm Post subject: |
|
|
| Thanks gang, I modified to my needs and it worked great! |
|
| Back to top |
|
 |
|