Drag and Drop files

BlitzMax Forums/Brucey's Modules/Drag and Drop files

Pete Rigz(Posted 2009) [#1]
Sorry me again...

I'm trying add a feature to drag and drop files from windows explorer into the application to load files that way, but when trying to create a wxFileDropTarget it returns null. I don't know if it's a bug or I'm just doing it all wrong!

Here's the sample code, where i've tried to (more or less) copy the sample from the wxWidgets book:




Brucey(Posted 2009) [#2]
I added support for it in wxCodeGen. If it works there for you, then it should work :-)

It certainly used to work.


Pete Rigz(Posted 2009) [#3]
o, I'm an idiot.

Local draggedfile:DnDFile = DnDFile(New wxFileDropTarget.Create())


should of course be

Local draggedfile:DnDFile = DnDFile(New DnDFile.Create())



Brucey(Posted 2009) [#4]
Oh yes. That'll help! :-)