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 


Forgot how to List loadfile into EDIT dialog with wrap ..

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


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 11, 2006 5:16 am    Post subject: Forgot how to List loadfile into EDIT dialog with wrap .. Reply with quote

Embarassed

I seem to have forgotton and stumped on how to get my text file into an EDIT dialog window and to word wrap, I tried below but my text is carbled or messed up and all in 1 line(no wrap).

I tried many variations like below:

Code:
DIALOG ADD,EDIT,edit1,87,40,371,120,,,wrap

LIST CREATE,1
list loadfile,1,c:\path\text.txt
REM    list append,edit1,1
dialog set,edit1,@text(1)
REM   dialog set,edit1,1
REM   dialog set,edit1,@text(1)
LIST CLOSE,1


I tried the LIST dialog control but it has no WRAP feature and the lines go past my scroll limits.

Maybe I should sleep more Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Sat Feb 11, 2006 2:13 pm    Post subject: Reply with quote

You fou forgot to make your edit element "multi"... It's hard to wrap on a single line... Wink

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Sat Feb 11, 2006 8:44 pm    Post subject: Reply with quote

Why don't someone just shoot me Rolling Eyes

I started out with the Multi and couldnt get anything to work, I must have forgot to put it back.
Now I can REM out the ol' VDSOBJ lines, I like EDIT better than RICHEDIT in what I'm doing here.

The below works great now:
Code:
DIALOG ADD,EDIT,edit1,87,40,371,120,,,wrap,MULTI,scroll

  LIST CREATE,1
  list loadfile,1,c:\path\text.txt
  dialog set,edit1,@text(1)
  LIST CLOSE,1

I never was much of a wrapper anyways Wink

Thanks a kaaZillion Hooligan, I appreciate you pulling me outta stupidville.

cherrios Very Happy
Back to top
View user's profile Send private message Visit poster's website
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