Drag & drop with a display file icon lazarus / 39-Graphics ---------------------------------------------------------------------- Wargan · 2017-05-06 04:16 Greetings to all! I want to drag and drop the file onto the form so that its icon is shown when dragging. As in the picture in the attachment. It's not necessary to display the thumbnail or contents of the file, I just want to see icon and name. It's possible to implement? p.s. File should be dragged to a specific location, i.e. to BCPanel (dropFilePanel). ---------------------------------------------------------------------- balazsszekely · 2017-05-06 05:01 QuoteI want to drag and drop the file onto the form so that its icon is shown when dragging. As in the picture in the attachment. It's not necessary to display the thumbnail or contents of the file, I just want to see icon and name. It's possible to implement? Hi Wargan, For files you already have a default icon implemented(image1). OnDropFiles(Form1) do something like this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormDropFiles(Sender: TObject; const FileNames: array of String);var  I: Integer;begin  for I := Low(FileNames) to High(FileNames) do  begin      //process each file  end;end; For more advanced drawing see the "Example projects" in the "Tool menu"(Image2) ---------------------------------------------------------------------- Wargan · 2017-05-06 11:18 Great, GetMem! Thanks, problem solved.