Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 830 Bytes

TPJDroppedFileFilter.md

File metadata and controls

20 lines (13 loc) · 830 Bytes

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.