One of the central features the Windows Explorer offers is the ability to move or copy files by dragging them with the mouse and dropping them at the desired location. Creating this effect in your application is easy: both components offer full drag and drop support as well as Vista-style drag icons and drag hints.
You can test the ShellBrowser Delphi Components' drag and drop capabilities in our JamExplorer sample application.
Drag and Drop support for your controls: the TJamDropFiles and TJamDragFiles components
If you want to include drag and drop operations in your application without using the ShellTree or ShellList component, you can use the invisible TJamDropFiles or TJamDragFiles Delphi components.
By connecting it to any Delphi Control you can capture, control and implement Drag&Drop events (DragEnter, DragLeave, DragOver, Drop) raised for the connected control. TJamDragFiles does the reverse and enables any connected VCL control to start a shell drag operation.
You can attach event handlers to specify or receive a list of files that are being dragged and enable you to specify the intended DropEffect (none, copy, move, or link). You could, for example, add the names of specific files to a standard TListBox while rejecting other files (i.e. preventing them from being dropped).
With the help of TJamDropFiles and TJamDragFiles, any control can interact with the file system via Drag&Drop. More examples are available in our demo application JAMDragDrop.