Real Software Forums
http://forums.realsoftware.com/

Paste FolderItem like Drag and Drop?
http://forums.realsoftware.com/viewtopic.php?f=7&t=47775
Page 1 of 1

Author:  hgumbert [ Fri May 03, 2013 7:38 am ]
Post subject:  Paste FolderItem like Drag and Drop?

Right now I can Drag and Drop a file into my app and I can receive the DropObject event. That rocks.

Is there a way to paste a FolderItem, like an image or any other file for that matter, and then receive an event?

Also, is there a way to drag an image from Safari into a window as if it was a FolderItem? That doesn't behave like a dragged FolderItem from what I can tell.

I'm ok with taking the pasted item or dragged image and transforming it into a FolderItem, but I'm just not sure how to find out what they pasted or dragged.

Thanks in advance!

Hal Gumbert, CampSoftware.com

Author:  harriew [ Fri May 03, 2013 9:44 am ]
Post subject:  Re: Paste FolderItem like Drag and Drop?

You should look at the "Drag and Drop" section of the Users Guide. Particularly the section that tells how to determine the type of drop object received when you can accept more than one type.
http://docs.realsoftware.com/index.php/UsersGuide:Chapter_5:Drag_and_Drop

Author:  hgumbert [ Fri May 03, 2013 10:36 am ]
Post subject:  Re: Paste FolderItem like Drag and Drop?

Thanks! I read that and I didn't see the difference between AcceptTextDrop, AcceptPictureDrop, and AcceptFileDrop (Type).

It's clear now!

Thank you.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/