Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

TPJDroppedFileFilter

Project: Drop Files Components.

Unit: PJDropFiles.

Applies to: ~>5.0

TPJDroppedFileFilter = procedure(
  Sender: TObject; const FileName: string; const IsFolder: Boolean;
  var Accept: Boolean
) of object;

Description

Event handler type for OnFileFilter events, triggered for each file and folder dropped after processing by any filter component. This event can be handled to apply custom filtering to each file and folder.

FileName is the name of the file or folder being filtered. IsFolder is true if FileName denotes a folder. The state of the Accept flag determines if FileName is to be added to the list of dropped files / folders. Accept is true by default - set it to false to omit the file from the list of dropped files and folders.