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 


Getting wrap on the LIST Dialog Element....

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


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Tue Nov 19, 2002 1:12 pm    Post subject: Getting wrap on the LIST Dialog Element.... Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Nov 19, 2002 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue Nov 19, 2002 1:53 pm    Post subject: Reply with quote

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 Smile

_________________
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
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Nov 19, 2002 1:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Nov 19, 2002 2:00 pm    Post subject: Reply with quote

Oops... Posted on the same moment, but it doesn't matter, I think, because you now have a choise... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


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

PostPosted: Tue Nov 19, 2002 4:38 pm    Post subject: Reply with quote

http://www.vdsworld.com/index.php?page=download&fileid=158
Back to top
View user's profile Send private message
MarkTrubo
Contributor
Contributor


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Tue Nov 19, 2002 4:40 pm    Post subject: Reply with quote

Thanks gang, I modified to my needs and it worked great!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
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