Hi,
for a project of mine, i needed Drag&Drop inside my Software and also to and from external Windows (i.e. Explorer, Outlook...)
I didn't get that §$"%!& working on my own, but i found Melanders GREAT! Drag&Drop Suite.
Porting the Lib did the trick for me... there are 20 Components for doing the Drag&Drop in Melanders lib.
I got in contact with him and he allowed to publish the Lazarus fork.
Download the zip and extract it to your own components directory.
Open "DragDropLazarus.lpk" in subfolder "Source". Compile and Install it.
A new Section "DragDrop" will apear in Comonent List with 20 new Componnents.
The "DropContextMenue" Component will not work (untestet..), because there is no onOwnerDraw Event for TMenuItem in Lazarus.... (can't fix it, maybe one of you can..)
Tested DropSource and DropTarget, TVirtualFileStreamData, TFileDataFormat and it's working great!
Download Drag&Drop Suite Fork for Lazarus Edit:
Package is now part of Lazarus OPM (OnlinePackageManager). Download and install it with OPM or only download Package with above Link.
DragDrop Suite was fixed for 64Bit Version of Lazarus by GetMem and tested by many others! Thanks...
Have fun, Michael
see also:
http://forum.lazarus.freepascal.org/index.php/topic,38362.0.html