TCustomForm.OnDropFiles property
Handler called when files have been dropped.
Declaration
property OnDropFiles: TDropFilesEvent read FOnDropFiles write FOnDropFiles;Description
OnDropFiles is a
TDropFilesEvent event handler
signalled when a File Drag notification is received from the LCL / widgetset
interface.
The Sender argument contains the current form instance. The
FileName argument contains an array with the fully-qualified file
names for the drop operation.
Set AllowDropFiles to True to enable drag and drop
operations, and execution of this event handler. The event handler is not
signalled when AllowDropFiles is set to False.
The event handler should perform any actions needed for each of the files dropped onto the form instance.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
