My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TPJDropFiles  
TPJDropFiles class description
Updated May 8, 2011 by delphidabbler

TPJDropFiles

Project: Drop Files Components.

Unit: PJDropFiles.

This component provides a window which can accept files dragged and dropped from Windows Explorer (the component handles WM_DROPFILES messages to do this). This control can contain child components (in a similar way to TPanel components). Files dropped over any such child component are also accepted by the parent TPJDropFiles component.

The main use for TPJDropFiles is when you need to detect file drops on non-windowed components such as TLabel or TShape. To do this drop a TPJDropFiles on a form and then place the required non-windowed control on top of the TPJDropFiles, aligning and sizing both components as required.

Methods

Method Description
Paint Paints the outline of the component at design time. Does nothing at run time.

Properties

Property Description
Align Inherited from TCustomControl. See Delphi help for details.
Anchor Inherited from TCustomControl. See Delphi help for details.
Constraints Inherited from TCustomControl. See Delphi help for details.
Count This read-only property returns the number of files dropped on the control.
Cursor Inherited from TCustomControl. See Delphi help for details.
DropControl This read only property references the control that the files were dropped on.
DropPoint This read only property gives the mouse coordinates where the files were dropped.
Enabled Inherited from TCustomControl. See Delphi help for details.
FileName The name of the file dropped on the control.
Files The names of the most recent files dropped on the control.
Filter References a file filter component used to filter the names of dropped files.
ForegroundOnDrop Causes the owning window to be brought to front when files are dropped.
Height Inherited from TCustomControl. See Delphi help for details.
HelpContext Inherited from TCustomControl. See Delphi help for details.
HelpKeyword Inherited from TCustomControl. See Delphi help for details.
HelpType Inherited from TCustomControl. See Delphi help for details.
Hint Inherited from TCustomControl. See Delphi help for details.
IsFolder Tells whether each of the dropped files is a folder or a file.
Left Inherited from TCustomControl. See Delphi help for details.
Name Inherited from TCustomControl. See Delphi help for details.
Options Determines how the dropped files are processed and which files are stored in the Files property.
ParentShowHint Inherited from TCustomControl. See Delphi help for details.
PassThrough Causes drop files messages to be passed through to the owning form.
ShowHint Inherited from TCustomControl. See Delphi help for details.
TabOrder Inherited from TCustomControl. See Delphi help for details.
TabStop Inherited from TCustomControl. See Delphi help for details.
Tag Inherited from TCustomControl. See Delphi help for details.
Top Inherited from TCustomControl. See Delphi help for details.
Visible Inherited from TCustomControl. See Delphi help for details.
Width Inherited from TCustomControl. See Delphi help for details.

Events

Event Description
OnBeforeDrop Event that occurs just before files dropped on the control are processed.
OnDropFiles Event that occurs when files are dropped on the component's window.
OnFileFilter Event that occurs for each file and folder processed and allows for custom filtering of files.


Sign in to add a comment
Powered by Google Project Hosting