Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
DragDrop component from OPM (by Anders Melander)
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Optional parameter in fun...
by
carl_caulkett
[
Today
at 02:23:52 pm]
Why MaxDouble does not eq...
by
marcov
[
Today
at 02:23:09 pm]
FpcUpDeluxe seems to have...
by
cdbc
[
Today
at 02:12:15 pm]
Chinese Fonts in fpPDF
by
jianwt
[
Today
at 01:53:14 pm]
Q Win SHBrowseForFolder A...
by
d7_2_laz
[
Today
at 01:32:07 pm]
Error printing to zebra p...
by
magleft
[
Today
at 01:07:15 pm]
String in binary file
by
Thaddy
[
Today
at 12:59:02 pm]
Use mORMot2 to export PDF...
by
dbannon
[
Today
at 12:33:49 pm]
[Solved] Shell controls s...
by
d2010
[
Today
at 12:13:47 pm]
TPairSplitter control lea...
by
wp
[
Today
at 11:31:27 am]
Xtensa-freertos wiki
by
ccrause
[
Today
at 09:48:49 am]
Building FPC 3.2.2 on Deb...
by
MarkMLl
[
Today
at 09:27:48 am]
Win SHBrowseForFolder API...
by
d2010
[
Today
at 09:02:38 am]
Class helpers cannot have...
by
Thaddy
[
Today
at 08:51:02 am]
Not able to install "fpc-...
by
dbannon
[
Today
at 07:19:07 am]
[Solved] Package Laz_Syna...
by
Fibonacci
[
Today
at 03:40:50 am]
Making a plea :)
by
dbannon
[
Today
at 02:25:25 am]
Reintroduce events and pr...
by
Joanna
[
Today
at 01:58:28 am]
Besides TForm is there a ...
by
mas steindorff
[
Today
at 12:40:09 am]
About $ and Cents - Dbf L...
by
Fibonacci
[
Today
at 12:01:43 am]
Is there a TPanel substit...
by
Sieben
[October 04, 2024, 11:47:42 pm]
FPC 3.2.2 / Lazarus 2.2.6...
by
Fred vS
[October 04, 2024, 09:58:43 pm]
Why I can not set affinit...
by
440bx
[October 04, 2024, 09:28:07 pm]
Feature announcement: Imp...
by
corpsman
[October 04, 2024, 08:48:30 pm]
Trying to tweak the bsTri...
by
carl_caulkett
[October 04, 2024, 08:19:54 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DragDrop component from OPM (by Anders Melander) (Read 210 times)
domasz
Hero Member
Posts: 529
DragDrop component from OPM (by Anders Melander)
«
on:
September 08, 2024, 12:38:47 pm »
I am trying to use Drag Drop component from OPM in my project to drag&drop files from my program to Explorer.
It does work but I want to keep subdirectories and right now all files are dropped to the destination directory without any subdirs.
Here's the code:
https://forum.lazarus.freepascal.org/index.php/topic,68414.msg528825.html#msg528825
Logged
domasz
Hero Member
Posts: 529
Re: DragDrop component from OPM (by Anders Melander)
«
Reply #1 on:
September 08, 2024, 01:37:49 pm »
This is it:
Code: Pascal
[Select]
[+]
[-]
DropFileSource1
.
MappedNames
.
Add
(
'hello\there\kenobi.exe'
)
;
DropFileSource1
.
Files
.
Add
(
'C:\star\trek\gandalf.bmp'
)
;
It copies gandalf.bmp to whatever Explorer directory you choose + hello\there subdir and names it kenobi.exe
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
DragDrop component from OPM (by Anders Melander)
TinyPortal
© 2005-2018