Re: Drag and Drop Win32Lib Example Needed

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

Thanks for the clue, SPringle.

I realize now I need to be more specific. :)

I'm wanting to drag and drop a file from my desktop (or any explorer location) to the window or a control. I couldn't get the ListTreeView.exw program to accept a file dragged from the desktop.

Thanks!

It's easily possible that you already know this, and I may be wrong in some respect also, but:

the demo doesn't USE w32HDragAndDrop to DO anything, it just serves to "ANNOUNCE" or trigger an alert that the user has "dragged and dropped" (that is, dragged and ATTEMPTED to drop) something somewhere; the event routine that's invoked then must handle COMPLETELY the action of PUTTING that thing that was dragged INTO/ONTO the place it was "dropped" onto.

"w32HDragAndDrop" doc says: Something has been dragged onto the control or window

note that that doesn't mean that the something has actually been PUT onto a control or window, simply that it was "dragged" there and the mouse button was then RELEASED, such that the event routine knows that there was an INTENT to put something somewhere; you still have to MOVE it there with code.

The demo is only SHOWING a "movement" (in the Tree and List views), not actualy DOING a move. It takes "dummy" fileNames on the ListView, "drags" them as you wish from one dummy "directory" to another on the TreeView, but there are no actual files involved, and there's no actual CODE in the demo to implement file movement.

Hope that might help some, or, I apologize if I've said something you already understand.

Dan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu