I would like to drag and drop files from windows explorer onto my application which is being built in Codegear RAD studio 2009. Then I would like to be able to access data from the object I am dragging and dropping. I believe I have to implement IDropTarget. Can someone please provide an example of how I might implement IDropTarget to achieve this?
A:
There is a nice example written by Michael Dunn over at codeproject.com which shows how to implement IDropTarget
and access data from inside a IDataObject
which is used to store data during the drag and drop operation.
fhe
2009-07-24 06:44:35
Thanks. That link got me started. I also found another two links which eventually helped me achieve the result I needed.http://bcbcaq.freeservers.com/project_DD.html - this is an example implementation of implementing IDragDrop in BCBhttps://forums.codegear.com/thread.jspa?messageID=90402 - this helped me provide a way to determine which specific control the item was being dropped on.
Seth
2009-07-28 01:07:16