Recent

Author Topic: DropFiles doubt...  (Read 582 times)

Espectr0

  • Full Member
  • ***
  • Posts: 221
DropFiles doubt...
« on: June 17, 2023, 04:15:52 pm »
Hola,

DropFiles event from ApplicationProperties is the same as DropFiles event from any Form?

Thanks

jamie

  • Hero Member
  • *****
  • Posts: 6776
Re: DropFiles doubt...
« Reply #1 on: June 17, 2023, 05:20:27 pm »
yes, it should be the same.

It will get received after the form that has received it, in other words, first the form will receive it then the application control will receive it indicating which form in the SENDER that has received it.

  So it comes after the form that received it.
The only true wisdom is knowing you know nothing

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: DropFiles doubt...
« Reply #2 on: June 18, 2023, 01:28:26 pm »
Fine, now I understand that in macOS,
if I drag a file over my app bundle, and I want my app to catch it,
I should use "DropFiles" instead of "ParamStr(1)" like in Windows...

But is there a way to intercept it before the formshow event?
Because in the formshow event, for example, in the case of windows, I check if there is any file in "ParamStr(1)",
if there isn't, I show a welcome form, otherwise I use said file...

How would I do it in macOS or where?

Thanks.

 

TinyPortal © 2005-2018