DropFilesTarget, Version 1.2 (alt)
Hinweis: dies ist nicht die neueste Version!
Datei: INFO.txt
DropFilesTarget.pas Delphi unit containing the non-visual component TDropFilesTarget which implements the DragAcceptFiles / WM_DROPFILES API for any control that has a window handle (TWinControl descendant). Version 1.2 - always find the most current version at http://flocke.vssd.de/prog/code/pascal/dft/ Copyright (C) 2005 Volker Siebert <flocke@vssd.de> All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------------------------------------------------------- Delphi versions: 5, 6, 7, and 2005. The usage is quite simple: place a TDropFilesTarget on your form, link the "TargetControl" property to your control (i.e. TListBox) and write an event handler. The event get's fired when files are dropped on that control and the passed TDropFilesInfo object holds all the information. To install the component into your Delphi palette, just create a new or open an existing package and add DropFilesTarget.pas to it. The accompanying DropFilesTarget.dcr will be added automatically. Also take a look at the included sample application, a few lines of code often say more than 1,000 words ;) It can be compiled without installing the component! |