Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross-application drag-and-drop in Delphi

I would like to create a Delphi application for Windows XP which allows dropping of files dragged from Windows Explorer (the Desktop or folder windows) or other applications which support this operation (such as Total Commander). What about vice-versa? When the user drags an icon from my application, I should be able to set the contents of the dragged object to custom data.

My goal is to create a custom application toolbar, onto which I can drop applications and show their icons or drag applications or other entities from it.

How can this be done?

like image 458
Tom Avatar asked Nov 17 '08 10:11

Tom


2 Answers

This can be done with The Drag and Drop Component Suite. It also has examples for what you want.

like image 177
Lars Truijens Avatar answered Oct 09 '22 11:10

Lars Truijens


Raymond Chen has a nice series of articles about drag&drop:

  • What a drag Archives | The Old New Thing
  • What a drag: Dragging a virtual file (HGLOBAL edition)
  • What a drag: Dragging a virtual file (IStorage edition)
  • What a drag: Dragging a virtual file (IStream edition)

There are many other good articles on his blog when you search for drag and drop.

like image 43
Otherside Avatar answered Oct 09 '22 10:10

Otherside