Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

INFO: Determining the target of the drop

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensions.Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Mon Dec 22, 2008 4:12 am    Post subject: INFO: Determining the target of the drop

The Windows drag-drop model does not make it possible to determine the target path (if dropping on a folder in Windows Explorer) or any other information about the target application. The source of the drag-drop operation can only provide the data in one or more different formats. The target decides what to do with the data.

The following aspects of the drag-drop operation can be controlled when you act as a drop-source (list not exhaustive):

Providing data in one or more formats so that different targets can understand and read the data.
The NSEFolder.GetDataObject method should be used to provide the data. Alternately, you can make your items accessible via streams (for example, if they represent items on a FTP server or a remote/web location). To do this, call the NSEDataObject.SetHasFileData method in the NSEFolder.GetDataObject method. Then override the NSEItem.GetFileDescriptor NSEItem.GetStream methods to make your items accessible via streams.

Specifying whether the items can be moved, copied or linked.
The NSEFolder.GetAttributes method should be used to specify this by including the NSEItemAttributes.CanLink, NSEItemAttributes.CanMove and NSEItemAttributes.CanLink flags in the item's attributes. For example, if the item attributes contains NSEItemAttributes.CanLink flag, the item can be copied by the target.

Specifying the preferred drop action
See http://www.ssware.com/support/viewtopic.php?t=496
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensions.Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group