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 


TXT file opened on LIST window with DRAGDROP option

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


Joined: 07 Aug 2004
Posts: 340

PostPosted: Sat Aug 07, 2004 10:14 am    Post subject: TXT file opened on LIST window with DRAGDROP option Reply with quote

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


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

PostPosted: Sat Aug 07, 2004 10:41 am    Post subject: Reply with quote

You can do this to get the file's contents... Smile

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
View user's profile Send private message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Sat Aug 07, 2004 1:12 pm    Post subject: Just one more thing About the LIST Reply with quote

Yes your stuff works.

What then if LIST1 is already in use.

Program start up with txt file.
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: Sat Aug 07, 2004 1:15 pm    Post subject: Reply with quote

You can just change the name of LIST1 to any other name you want, so that it won't interact with your other dialog elements... 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
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