INTERACT FORUM

Windows => Plug-in Development => Topic started by: pbair on October 17, 2009, 11:55:35 am

Title: Drag and Drop MC Playlist into plugin?
Post by: pbair on October 17, 2009, 11:55:35 am
Is it possible to drag a Playlist from the MC tree and drop it onto a control in a loaded plugin?  Ultimately I'd like to just get the ID of the dropped playlist with the DragDrop event of my control.

From trial and error using e.Data.GetFormats and e.Data.GetData, I've been able to determine that the DataFormat of the dropped object can be converted to several DataFormats, but haven't been able to get any data that seems to be relevant to the dropped playlist (e.g. results like, "System.String[]").  Does the MC playlist object require a custom Data Format?

Thanks.
patrick
Title: Re: Drag and Drop MC Playlist into plugin?
Post by: Matt on October 17, 2009, 12:05:08 pm
Only files (standard CF_HDROP format) are in the drag.

The name of the playlist or source view is not currently available.

You might be able to support copy + paste, since we put text formats on the clipboard along with files.
Title: Re: Drag and Drop MC Playlist into plugin?
Post by: pbair on October 17, 2009, 01:24:11 pm
Only files (standard CF_HDROP format) are in the drag.

The name of the playlist or source view is not currently available.

You might be able to support copy + paste, since we put text formats on the clipboard along with files.

Thanks!  I am able to get the list of filenames utilizing the FileDrop DataFormat.