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


Joined: 07 Aug 2004 Posts: 340
|
Posted: Sat Aug 07, 2004 10:14 am Post subject: TXT file opened on LIST window with DRAGDROP option |
|
|
TXT file opened on LIST window with DRAGDROP option.
LIST window can open txt file.
But if i want to DRAGDROP file on list
Can be opened ?
I just get a file name input |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Aug 07, 2004 10:41 am Post subject: |
|
|
You can do this to get the file's contents...
| Code: | DIALOG CREATE,New Dialog,-1,0,431,325,DRAGDROP
DIALOG ADD,LIST,LIST1,5,5,420,315
DIALOG SHOW
:Evloop
wait event
goto @event()
:Dragdrop
# First, create a new (temp) list to receive the dropped item's path.
list create,1
list dropfiles,1
# Now load the contents of the first item of list one (the dropped file's
# path) into LIST1.
list loadfile,LIST1,@item(1,0)
# And close list 1, so that it can be re-used.
list close,1
goto Evloop
:Close
exit |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Sat Aug 07, 2004 1:12 pm Post subject: Just one more thing About the LIST |
|
|
Yes your stuff works.
What then if LIST1 is already in use.
Program start up with txt file. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| 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
|
|