Now I want to do the opposite. Well ; From the file path information, how can I transfer the file to a folder with drag and drop. I would be grateful if you help. Respects.
Title: Re: How to transfer files with drag and drop.
Post by: RayoGlauco on October 26, 2021, 01:26:57 pm
Hello, Loaded,
You can check this link: https://wiki.lazarus.freepascal.org/Drag_and_Drop_sample (https://wiki.lazarus.freepascal.org/Drag_and_Drop_sample)
if Button = mbLeft then{check if left mouse button was pressed}
Edit1.BeginDrag(true);{starting the drag operation}
end;
Title: Re: How to transfer files with drag and drop.
Post by: loaded on October 26, 2021, 03:31:31 pm
Hello RayoGlauco, thank you very much for your reply. I tried but unfortunately it didn't work. Apparently there are other things I need to learn.
Title: Re: How to transfer files with drag and drop.
Post by: loaded on October 27, 2021, 06:08:33 pm
As a result of my research; https://www.swissdelphicenter.ch/en/showcode.php?id=2335 (https://www.swissdelphicenter.ch/en/showcode.php?id=2335) https://forum.lazarus.freepascal.org/index.php?topic=42233.0 (https://forum.lazarus.freepascal.org/index.php?topic=42233.0)
I created an example that can work double-sided with small touches. Thanks to the guys in the link.
Let's put it here, maybe it will be useful to others one day.
Title: Re: How to transfer files with drag and drop.
Post by: TRon on June 28, 2023, 09:53:05 pm