» Contents
Two components are provided that enable applications to support Windows Explorer file drag and drop. The components are:
Key features of these components are:
An OpenHelp compatible help file is included that integrates with Delphi 3 to 7. The help file does not integrate with Delphi 2005 and later, but can be used as a stand-alone help file with some loss of functionality. An a-link keyword file is supplied for use with Delphi 6 and 7.
The source code for two demo programs is included. Details are:
» Contents
The Drop Files Components compile with Delphi 3 and later. They have been tested with Delphi 3, 4, 6, 7 and 2006.
» Contents
The Drop Files Components, their documentation and the demo program 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
– resource file
containing component palette glyphs.
PJDropFilesDsgn.pas
– source file
for component registration and component and property editors.
PJDropFilesDsgn.dfm
– property
editor form.
PJDropFiles.hlp
– component help file that integrates
with the Delphi 3 to 7 OpenHelp system.
PJDropFiles.als
– a-link keyword file for integration
with the Delphi 6 or 7 OpenHelp system.
ReadMe.htm
– this file.
ChangeLog.txt
– component's change log.
Demo\DelphiDabbler.ico
– DelphiDabbler icon used by
demo programs.
Demo\1\DropFilesDemo.dpr
– main demo project file.
Demo\1\DropFilesDemo.res
– icon resource for main
demo.
Demo\1\FmDropFilesDemo.pas
– main demo form source
file.
Demo\1\FmDropFilesDemo.dfm
– main demo form file.
Demo\2\FrameDemo.dpr
– frame demo project file.
Demo\2\FrameDemo.res
– icon resource for frame demo.
Demo\2\FmFrameDemo.pas
– frame demo form source file.
Demo\2\FmFrameDemo.dfm
– frame demo form file.
Demo\2\FrDemo.pas
– frame demo frame source file.
Demo\2\FrDemo.dfm
– frame demo frame file.
You can now proceed to install the components and property editor using the
emphasised files above. Installation methods vary between
Delphi versions, so follow the instructions that apply to your version
below. Note that $(DELPHI)
represents the
path where the appropriate version of Delphi was installed. Similarly
$(BDS)
refers to the installation path of a
version of the Borland Development System.
The components must be installed into a Delphi Win32 design package. It is
assumed that you will be installing into an existing package. You may decide
to install into the "user" package:
$(BDS)\Lib\dclusr.dpk
.
Borland Studio Projects
or $(BDS)\lib
folders.
PJDropFiles.pas
, PJDropFiles.dcr
,
PJDropFilesDsgn.pas
and PJDropFilesDsgn.dfm
to
the chosen installation folder.
.bpl
extension. Right click the package's entry and
select Add to display the Add dialog box.
Enter the full path to PJDropFiles.pas
in the
Unit file name edit box (use the Browse button
to navigate to the file). Click OK to add the component
to the package.
PJDropFilesDsgn.pas
.
PJDropFiles.pas
and
PJDropFilesDsgn.pas
from the chosen installation folder.
The components must be installed into a design package. It is assumed that
you will be installing into an existing package. You may wish to use the
"user" package named dclusr.dpk
or
dclusrXX.dpk
(where XX
is a version number). This
package can be found in $(DELPHI)\Lib
.
$(DELPHI)\lib
folder.
PJDropFiles.pas
, PJDropFiles.dcr
,
PJDropFilesDsgn.pas
and PJDropFilesDsgn.dfm
to
the chosen installation folder.
PJDropFiles.pas
in the Unit file
name edit box (use the adjacent Browse button to
navigate to the file). Repeat the previous step for
PJDropFilesDsgn.pas
. Choose the required package
from the Package description combo box, or by
navigating to the package using Browse. Click
OK to confirm your selections.
PJDropFiles.pas
and
PJDropFilesDsgn.pas
from the chosen installation folder.
.als
file. The simplest way to install help is to use my
Component Help
Installer Expert (v2.2.1 or later). If you prefer to install
manually,
this
article explains the process.
» Contents
There are no known outstanding bugs.
There was a bug in release 2.0 where length of strings containing names of dropped files was being set incorrectly. This was fixed inrelease 2.0.1.
In v3.0 and v3.1 the DropControl property did not always return the correct control. This was fixed in v3.2.
There was a small memory leak in all release 3 versions. This was fixed in release 4.0.
In release 4 there was a minor bug in the wildcard file filter where a change of wildcard was sometimes ignored. This was fixed in release 5.0.
» Contents
A complete change log is provided in a text file that is included in the download.
» Contents
This source code is subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this program except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The Original Code is Drop Files Components.
The Initial Developer of the Original Code is Peter Johnson (http://www.delphidabbler.com/).
Portions created by the Initial Developer are Copyright © 1998-2006 Peter Johnson. All Rights Reserved.
All relevant trademarks are acknowledged.
» Contents
I'm Peter Johnson – a hobbyist programmer living in Ceredigion in West Wales, UK, writing write mainly in Delphi. My programs are available for download from: http://www.delphidabbler.com/.