Drag and Drop files
BlitzMax Forums/Brucey's Modules/Drag and Drop files| 
 | ||
| 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: | 
| 
 | ||
| I added support for it in wxCodeGen. If it works there for you, then it should work :-) It certainly used to work. | 
| 
 | ||
| o, I'm an idiot. Local draggedfile:DnDFile = DnDFile(New wxFileDropTarget.Create()) should of course be Local draggedfile:DnDFile = DnDFile(New DnDFile.Create()) | 
| 
 | ||
| Oh yes. That'll help! :-) |