Source Code Online Home Categories Top Code New Code Submit Code
Search
Subject Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Visual Basic & VB.NET
 XML
New Code
AllWebMenus Pro 5.2.816
PHP Classified Script For Dating 1.1
BusinessSkinForm VCL 8,27
DBF Viewer 2000 3.25
FlyTreeView for ASP.NET 4.4.1
FlySpeed Data Export 5.0
FMyLife Clone Script (Pro Edition) 1.0
Likno Web Modal Windows Builder 1.1.132
AiveaCommerceServer 2.0
Form creator 1.0
Licence Protector 3.0
VISCOM AV Manager Digital Display Software 6.25
Mainmedia Image Converter Pro ActiveX Component 1.15
FLV Encoder Directshow Filter 1.11
Mainmedia F4V Encoder directshow SDK 1.02
Top Code
Point of Sale Software 1.0
Free Inventory System Source Code 1.0.75
Texas Rankem 1.0
School Management System 2.2.0
FREE Robust Internet Download Manager
PHP Login Script with Remember Me Feature
Making a PHP Login Form
PHP AJAX DataGrid 1.0
Time and Attendance 1.0
Simple Login/Registration Using Flash with PHP and mySQL
Internet Cafe Monitoring Source Code v1.0
Enterprise TimeSheet and Payroll 1.I
Inventory Management 1.00
Start Poker Site
Habanero 2.0.1b
Top Rated
PHP Classified Script For Dating 1.1
Telebid Auction Script Clone 2.0
PHP Video Search Script 1.0
rss Factory PRO 1.5.9
TOP SEO classified ads software 1.1
Debugger for MySQL 1.0
iLister Multi-Purpose Listing Script 4.7.0
FLV Encoder Directshow Filter 1.11
Delphi2Cpp 1.1.5
HelpConnection.NET 2.0
IMAP Component for .NET 2.0
BPMembers - Company Network Script 1.0.1
Yahoo Answers Clone 3.0
Kentico E-commerce for ASP.NET 4.0
FlashFormMail 1.0
Details

TPJDropFiles and TPJFormDropFiles 5.0

by Peter Johnson





Five components are included in this pack. The three major ones enableapplications to support Windows Explorer file drag and drop operations. Theremaining two subsidiary components link to and filter the files dropped onone of the primary components. The components are:TPJDropFiles: This windowed component catches files dropped anywhere overits window. It can act as a container for other components.TPFormDropFiles: This non-visual component catches files dropped anywhereon its form, including the non-client areas.TPJCtrlDropFiles: This non-visual component catches files dropped on an associated TWinControl or TFrame.TPJExtFileFilter: When linked to a TPJDropFiles or a TPJFormDropFilesthis component filters dropped files by extension. One or more extensions canbe provided.TPJWildCardFileFilter: Like TPJExtFileFilter except that it filters basedon a DOS-style wild-card string.In addition to the above an abstract base class is provided from whichdevelopers can derive other filter components.Key features of TPJDropFiles, TPJCtrlDropFiles and TPJFormDropFiles are:An OnDropFiles event is triggered when files are dropped.The names of dropped files are made available through the Files arrayproperty. For convenience, the name of the first such file is also stored inthe FileName property.The list of dropped files can be configured to include only files, onlyfolders or all files and folders.Dropped folders can be recursed so that all the files and sub-folders ineach of the dropped folders are listed.Filters can be applied to the dropped files and folders. This is doneeither by linking to a filter component (see above) or by handling theOnFileFilter event and deciding which files and folders to pass through thefilter in the event handler.The mouse co-ordinates where the files were dropped can be retrieved, ascan a reference to any control under the mouse cursor at the time.The OnBeforeDrop event can be used to perform pre-processing before thefiles are actually dropped.The IsFolder array property tells if the equivalent item from Files array isa file or a folder.The owning window can be brought to the front when files are dropped.Some design time assistance is provided by component and propertyeditors.A OpenHelp compatible help file is included that integrates with theOpenHelp system of Delphi 3 to 7. The help file can be used independentlyof the Delphi 2005 and 2006 IDEs with some loss of functionality.Two demo programs are included in the download. The first exercises bothdrop files components and the related file filtering components. The second shows how to use TPJCtrlDropFiles with frames.

License: Freeware

Related: Delphi, Component, Source, Code, Download, Free, Freeware, Windows, Explorer, Drag, And, Drop, File, Dragacceptfiles, Wm_dropfiles

File Size: 65.0 KB

Downloads: 9

Submit Rating:
Download TPJDropFiles and TPJFormDropFiles 5.0  Report Error Link
More Similar Code


Three components are provided that enable applications to support Windows Explorer file drag and drop. TPJDropFiles is a windowed control that catches files dropped anywhere over its window. It can act as a container for other...



User Review for TPJDropFiles and TPJFormDropFiles 5.0
- required fields
     

Please enter text on the image