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.

OnBeforeDrop event

Project: Drop Files Components.

Unit: PJDropFiles.

Class: TPJFormDropFiles

Applies to: ~>5.0

property OnBeforeDrop: TNotifyEvent;

Description

This event is triggered when files are dropped on the form but before the files are processed. If the processing of files is likely to be a lengthy occurence then an hourglass or similar user interface device can be displayed here.

The Files property does not yet contain details of the files dropped when this event is triggered, so the Files property should not be read. The OnDropFiles event is triggered after the processing of files takes place. The Files property should therefore be read in the OnDropFiles event handler.