Recent

Author Topic: Drag and drop file to the icon lazarus program  (Read 5558 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2041
    • Lazarus and Free Pascal italian community
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?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Leledumbo

  • Hero Member
  • *****
  • Posts: 8143
  • 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

xinyiman

  • Hero Member
  • *****
  • Posts: 2041
    • Lazarus and Free Pascal italian community
Re: Drag and drop file to the icon lazarus program
« Reply #2 on: September 01, 2010, 02:23:31 pm »
Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1