Three components are supplied that support drag and drop from Windows Explorer along with subsidiary components that can filter dropped files. The components are:
Some design time assistance is provided by component and property editors.
Key features of the drop files components are:
The components have been tested on Delphi 7 to XE4 Windows compilers (except Delphi 2005) and the Delphi XE2 to XE4 64 bit compilers. The components are thought to compile on compilers back to Delphi 3, but that is not guaranteed.
The components are for use with the VCL only: they are not compatible with FireMonkey.
.NET and non-Windows platforms are not supported.
The Drop Files Components, their documentation and the demo programs are supplied in a zip file. Before installing you need to extract all the files from the zip file, preserving the directory structure. The following files will be extracted:
PJDropFiles.pas – component source code.PJDropFiles.dcr – component palette glyphs.PJDropFilesDsgn.pas – property editors and component registration source code.PJDropFilesDsgn.dfm – property editor form.README.md – this file.CHANGELOG.md – component's change log.MPL-2.txt – the Mozilla Public License v2.0.Documentation.URL – short-cut to the component's online documentation.In addition to the above files you will find the source code of two demo projects the Demo1 and Demo2 sub-directories.
You can now install the components into the Delphi IDE. To do this, the files PJDropFiles.pas, PJDropFiles.dcr, PJDropFilesDsgn.pas and PJDropFilesDsgn.dfm should be added to a design time package. If you need help doing this see here.
The source code for two demo programs is included in the download:
Both demo programs require Delphi 7 as a minimum. They are both compatible with the Delphi 32 bit and 64 bit Windows compilers.
For more information about the demos see the file README.md in the Demos directory.
A complete change log is provided in CHANGELOG.md that is included in the download.
These components are released under the terms of the Mozilla Public License v2.0.
All relevant trademarks are acknowledged.
Bugs can be reported or new features requested via the project's Issue Tracker. A GitHub account is required.
Please check if an issue has already been created for a similar report or request. If so then please add a comment containing as much information as you can to the existing issue, or if you've nothing to add, just add a ? (:+1:) comment. If there is no suitable existing issue then please add a new issue and give as much information as possible.
I'm Peter Johnson – a hobbyist programmer living in Ceredigion in West Wales, UK, writing mainly in Delphi. My programs and other library code are available from: https://delphidabbler.com/.
This document is copyright © 2005-2022, P D Johnson.