# Drag and drop out of plugin into host?

**URL:** <https://forum.juce.com/t/drag-and-drop-out-of-plugin-into-host/2459>\
**Category:** Audio Plugins\
**Created:** [January 2, 2008, 11:06pm UTC](https://forum.juce.com/t/drag-and-drop-out-of-plugin-into-host/2459 "2008-01-02T23:06:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KoenTanghe](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/koentanghe/32/533_2.png) [@KoenTanghe](https://forum.juce.com/u/KoenTanghe)\
**Post date:** [January 2, 2008, 11:06pm UTC](https://forum.juce.com/t/drag-and-drop-out-of-plugin-into-host/2459/1 "2008-01-02T23:06:52Z")

</div>

Hi,  
I’ve been looking into the drag and drop handling in JUCE and found the DragAndDropTarget, DragAndDropContainer and FileDragAndDropTarget classes, but I don’t really see how these could be used when dragging objects _out_ of a plugin’s GUI. For example: if I have a list of audio samples, I want to drag a file from the list (in my JUCE-based plugin GUI) into the arrangment Window of my sequencer. Is there a way to do this, and if so: any hints about how to go about doing this?  
Thanks (and best wishes!),  
Koen

---

<div class="post-metadata">

**Author:** ![bld](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bld/32/35_2.png) [@bld](https://forum.juce.com/u/bld)\
**Post date:** [January 3, 2008, 9:22am UTC](https://forum.juce.com/t/drag-and-drop-out-of-plugin-into-host/2459/2 "2008-01-03T09:22:35Z")

</div>

good question - I would like to know it too 🙂

Cheers,  
Przemek

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [January 3, 2008, 10:48am UTC](https://forum.juce.com/t/drag-and-drop-out-of-plugin-into-host/2459/3 "2008-01-03T10:48:32Z")

</div>

Yes, of course those classes are only juce-specific, but you can use DragAndDropContainer::performExternalDragDropOfFiles to do the native version.

---

<div class="post-metadata">

**Author:** ![KoenTanghe](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/koentanghe/32/533_2.png) [@KoenTanghe](https://forum.juce.com/u/KoenTanghe)\
**Post date:** [January 3, 2008, 10:27pm UTC](https://forum.juce.com/t/drag-and-drop-out-of-plugin-into-host/2459/4 "2008-01-03T22:27:37Z")

</div>

OK, missed that somehow, sorry. Should do the trick, thanks!
