Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat May 23, 2009 12:01 pm Post subject: HOWTO: Access dragged items in the NSEItem.DragEnter, etc events |
|
|
To access items dragged from your own nse, you need to store them in your own format in the NSEFolder.GetDataObject method. For example code, see the RegistryBrowser sample which stores the dragged keys or values in string form using the 'REGBROWSER_DATA_DORMAT' data format.
This stored data can be retrieved by the drop-target in the NSEItem.DragEnter, NSEItem.DragOver and NSEItem.DragDrop methods and the corresponding items can be instantiated. For example, in the RegistryBrowser sample, the KeyItem.DragDrop method retrieves the stored data format and parses it to create the corresponding KeyItem or ValueItem instances and act on them. |
|