Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Drag and drop file to the icon lazarus program
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
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
Drawing a Box like MC
by
Bogen85
[
Today
at 04:20:44 am]
How to talk to a CDC USB ...
by
Curt Carpenter
[
Today
at 03:59:55 am]
TBufDataSet index
by
egsuh
[
Today
at 03:24:53 am]
DbGrid or RXDBGRID how i ...
by
eldonfsr
[
Today
at 03:13:01 am]
LazBarCode Can't compil...
by
eldonfsr
[
Today
at 02:02:46 am]
RXDbGrid not let me edit ...
by
eldonfsr
[
Today
at 01:59:05 am]
BGRABitmap - merge 2 imag...
by
KodeZwerg
[
Today
at 01:05:29 am]
Setting TBitmap.PixelForm...
by
domasz
[
Today
at 12:20:37 am]
Unicode resourcestring
by
KodeZwerg
[
Today
at 12:08:28 am]
Type checking of units of...
by
qk
[February 03, 2023, 11:40:54 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Drag and drop file to the icon lazarus program (Read 6377 times)
xinyiman
Hero Member
Posts: 2211
Drag and drop file to the icon lazarus program
«
on:
September 01, 2010, 09:00:20 am »
I wanted to ask if you can tascinare a file icon for a program that my hypothetical with Lazarus and my program will work. So do not open the program and they input the file path! How?
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
Leledumbo
Hero Member
Posts: 8530
Programming + Glam Metal + Tae Kwon Do = Me
Re: Drag and drop file to the icon lazarus program
«
Reply #1 on:
September 01, 2010, 12:32:06 pm »
(trying to understand...)
OK, if I can understand correctly, you want to process something (files or folders) dragged and dropped to your application's icon, right? It's actually the same as processing program parameters. Use standard ParamCount and ParamStr.
More information:
http://wiki.lazarus.freepascal.org/Command_line_parameters_and_environment_variables
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
xinyiman
Hero Member
Posts: 2211
Re: Drag and drop file to the icon lazarus program
«
Reply #2 on:
September 01, 2010, 02:23:31 pm »
Thank you
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Drag and drop file to the icon lazarus program
TinyPortal
© 2005-2018