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


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 11, 2006 5:16 am Post subject: Forgot how to List loadfile into EDIT dialog with wrap .. |
|
|
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  |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sat Feb 11, 2006 2:13 pm Post subject: |
|
|
You fou forgot to make your edit element "multi"... It's hard to wrap on a single line...
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Sat Feb 11, 2006 8:44 pm Post subject: |
|
|
Why don't someone just shoot me
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
Thanks a kaaZillion Hooligan, I appreciate you pulling me outta stupidville.
cherrios  |
|
| 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
|
|