INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Drag and Drop MC Playlist into plugin?  (Read 1925 times)

pbair

  • Recent member
  • *
  • Posts: 33
Drag and Drop MC Playlist into plugin?
« 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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Drag and Drop MC Playlist into plugin?
« Reply #1 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.
Logged
Matt Ashland, JRiver Media Center

pbair

  • Recent member
  • *
  • Posts: 33
Re: Drag and Drop MC Playlist into plugin?
« Reply #2 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.
Logged
Pages: [1]   Go Up