Home | Products | Downloads | About Us | Links | Awards | Contact Us | ProXoft 
Products - List Box With File Drop

List box with file drop is a Delphi component which extends the standard listbox functionality by adding file drop capabilities. Whenever a file from Windows Explorer is dropped over this control, a notifying event is fired allowing the host program to act accordingly.

Class name of this control is: TListBoxWithFileDrop

TListBoxWithFileDrop is identical with TListBox with exception of one new property:
    AcceptFileDrop:  boolean;

If AcceptFileDrop is set to True, and file from Windows Explorer is dragged and dropped over TListBoxWithFileDrop an event OnFileDrop is fired.

OnFileDrop event is defined as follows:
    procedure OnFileDrop((Sender: TObject; FileName: string; X: integer; Y: integer);

Below there is the source code of TListBoxWithFileDrop component:

Source Code of ListBox with File Drop Component

You can also download a compiled package which is ready to be installed (Download Now).

To install:

  1. Start your copy of Delphi
  2. Navigate to Component/Install Package form Delphi menu
  3. Click Add button on the Dialog Window
  4. Navigate to the directory where you saved the downloaded file
  5. Select ProXoftCtls.bpl file and Click Open button
  6. Click OK to close Project Options dialog

Alternatively you can download all source files for ProXoftCtls

Download component source code

Unzip downloaded files is separate directory. To open the project form Delphi, open ProxoftCtls.dpk file.


Below you can find the source code of demo program showing usage of TListBoxWithFileDrop:

Source Code of Demo Program

You can also download/run executable of Demo Program or - if you prefer so - download all project files (zipped) by clicking one of buttons below:

Run Demo of TlistBoxWithFileDrop Download Demo Sources

Home   Products   Downloads   About Us   Contact Us