TDropFile Ver 1.0
Provides easy support for drag and drop of files from
any explorer window to any TWinControl descendant in
your app.
Released to the public domain as freeware.
Plaese report all bugs, suggestions and problems to:
Nathan Fredrickson
[email protected]
also on EFnet, #bcbuilder, nrf
TDropFile is a descendant of TComponent.
The added properties/events/methods are :
Properties:
-----------
EnableDrop
The EnableDrop property controls whether dropping of
files is allowed.
DropTarget
The DropTarget is the WinControl that you want to add dropping
ability to.
By default the DropTarget is the form itself.
To set the DropTarget to Memo1 use:
DropFile1->DropTarget = Memo1;
To set the DropTarget to the form it is on,
either set the DropTarget in the Object Inspector to nothing,
or through code use: DropFile1->DropTarget = NULL;
Events:
-------
OnDropFile
The OnDropFile event is fired for every file dropped.