Description


Occurs when an attempt is to drag a file from explorer to the component for which this event was created. It also allows you to get the names of the files that were dragged to the component by the user.



Example


procedure Form1_Memo1_OnDropFiles (Sender: TObject; ArrayOfFiles: array of string; X, Y: Integer);
var
    i, c: integer;
begin
    c := Length(ArrayOfFiles)-1;
    for i := 0 to c do
    begin
        Form1.Memo1.Lines.Add(ArrayOfFiles[i]);
    end;
end;