Lazarus

Programming => Widgetset => Carbon => Topic started by: qdos on February 23, 2011, 12:23:42 am

Title: Drag and drop on OS-X
Post by: qdos on February 23, 2011, 12:23:42 am
I have a normal Lazarus application, and I would like to support dropping of files on the main form.
I found the event for this, but it doesnt fire when i drop files onto the main form (yes i did set the property AllowDropFiles).
What am I doing wrong?

1. Start a new Lazarus project, save project to disk
2. Set AllowFropFiles:=True in the inspector
3. Handle the OnDropFiles event. Just show a messagebox... showmessage('Files dropped!');

Nothing. No response at all when i drop files or folders on the form. Now from what I understand there are 3 scenarios:


Number 1 & 2 is not really required (but would be nice to support). I also found a previous post that deals explicitly with these two operation.

Does anyone know to to get the third scenario working?
Title: Re: Drag and drop on OS-X
Post by: Phil on February 23, 2011, 03:32:18 am
1 and 2 work:

http://web.me.com/macpgmr/ObjP/MacXPlatform_Part8.html#DropFiles

3 has been reported:

http://bugs.freepascal.org/view.php?id=18486

Thanks.

-Phil
TinyPortal © 2005-2018