drag and drop files from windows explorer

For questions about using Classic.

Post » Mon Jan 31, 2011 10:36 am

Hi there!

Does anyone know if there is a way to drag and drop files from a 'windows explorer' window into a Contruct application?

Basically I want to be able to drag '.wav' files into my application and drop them on particular channels (that are represented by icons).

MMF2 has a function that gets the name of any file dragged and dropped into the application - that is what I need.


Any ideas?
B
5
G
2
Posts: 40
Reputation: 930

Post » Mon Jan 31, 2011 5:26 pm

Here's an example using python and the ctypes library:
[url:3hdqpe8k]http://dl.dropbox.com/u/5426011/examples3/dragdrop.zip[/url:3hdqpe8k]
B
79
S
24
G
53
Posts: 4,728
Reputation: 40,219

Post » Tue Feb 01, 2011 1:25 pm

brilliant! thanks :)

so if I just keep the structure of the py.zip and _ctypes.pyd files in my application this should always work?
B
5
G
2
Posts: 40
Reputation: 930

Post » Tue Feb 01, 2011 6:50 pm

yep
B
79
S
24
G
53
Posts: 4,728
Reputation: 40,219


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests