Recent

Author Topic: Drag and drop files  (Read 6981 times)

Anonymous

  • Guest
Drag and drop files
« on: December 20, 2005, 09:32:16 am »
Hi, excuse for this maybe newbie question... I would like to build a GUI application with Lazarus that have a GUI object were dragging and dropping single or multiple files (and maybe directories) from the system (Linux and Windows but ideally not system dependent); the GUI's component object should accept drag and drop action and show the dropped files as a filename (possibly with system's icon asociated to the files) so the component should receive as parameter, at least, the qualified filename of the dragged file.
What kind of Lazarus objects could I use for starting implementing a thing like this?
Thank you in advance for any hint!

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: Drag and drop files
« Reply #1 on: December 20, 2005, 09:55:05 am »
You could have a look at this. It shows how this can be done in Delphi, but may be a good starting point for further research on how to accomplish this in Lazarus as well.
Associated icons is something related to the OS so that may be hard to implement. I have not found anything on Linux sofar which gives me something usuable. :( It is also dependent on the window manager in Linux.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

 

TinyPortal © 2005-2018