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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[SOLVED] Strange behavior...
by
jamie
[
Today
at 12:08:12 am]
Postgres, ZEOS and Visual...
by
andersonscinfo
[January 18, 2026, 11:01:09 pm]
ThemeServices.OnThemeChan...
by
sgj
[January 18, 2026, 10:37:32 pm]
AVRPascal – free code edi...
by
ackarwow
[January 18, 2026, 10:18:12 pm]
Developing FreePascal on ...
by
ccrause
[January 18, 2026, 09:34:54 pm]
help implementing frexp
by
srvaldez
[January 18, 2026, 09:25:07 pm]
my implementation of frex...
by
srvaldez
[January 18, 2026, 06:27:39 pm]
Rolling releases Lazarus[...
by
Martin_fr
[January 18, 2026, 04:37:42 pm]
Strings in Free Pascal: I...
by
PascalDragon
[January 18, 2026, 04:13:36 pm]
Question about optimizer ...
by
PascalDragon
[January 18, 2026, 04:01:54 pm]
Feature announcement: Fun...
by
PascalDragon
[January 18, 2026, 03:59:09 pm]
Adjacent rectangles not a...
by
jamie
[January 18, 2026, 02:36:34 pm]
Very simple Style Manager...
by
sgj
[January 18, 2026, 02:21:54 pm]
How to set the Excel cell...
by
dodgex
[January 18, 2026, 02:06:25 pm]
PeaZip project turns 20 t...
by
JanRoza
[January 18, 2026, 01:57:46 pm]
How to implement multiple...
by
bills
[January 18, 2026, 01:26:29 pm]
AdvancedHTTPServer: A Go-...
by
CynicRus
[January 18, 2026, 12:48:43 pm]
RPNCalc in Lazarus
by
jwdietrich
[January 18, 2026, 12:13:43 pm]
Is this Pascal Compiler t...
by
HKPhysicist
[January 18, 2026, 11:11:59 am]
Maze Makers: Modified Cyl...
by
Boleeman
[January 18, 2026, 08:51:29 am]
Olympic Rings (Interleave...
by
Boleeman
[January 18, 2026, 04:28:24 am]
Unit decfloat
by
MathMan
[January 17, 2026, 08:29:41 pm]
Funny
by
Ten_Mile_Hike
[January 17, 2026, 08:18:39 pm]
New book on Object Pascal
by
Ten_Mile_Hike
[January 17, 2026, 07:34:06 pm]
New open source component...
by
salvadordf
[January 17, 2026, 06:26:56 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: DragDrop component from OPM (by Anders Melander) (Read 572 times)
domasz
Hero Member
Posts: 615
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: 615
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