# Adding custom container

**URL:** https://forum.foleysfinest.com/t/adding-custom-container/208
**Category:** PluginGuiMagic
**Created:** [19 February 2025 10:51 UTC](https://forum.foleysfinest.com/t/adding-custom-container/208 "2025-02-19T10:51:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jan](https://forum.foleysfinest.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@Jan](https://forum.foleysfinest.com/u/Jan)
#### Post date: [19 February 2025 10:51 UTC](https://forum.foleysfinest.com/t/adding-custom-container/208/1 "2025-02-19T10:51:22Z")

</div>

Hello how can I add a custom container component that allows to drag other components under it, like View?  
I tried to overwrite isContainer() but it did not work.

---

<div class="post-metadata">

### Author: ![daniel](https://forum.foleysfinest.com/user_avatar/forum.foleysfinest.com/daniel/32/5_2.png) [@daniel](https://forum.foleysfinest.com/u/daniel)
#### Post date: [24 February 2025 12:25 UTC](https://forum.foleysfinest.com/t/adding-custom-container/208/2 "2025-02-24T12:25:55Z")

</div>

The drag and drop in a view only works in the edit mode.  
If you want to implement some modular effect, then this is not implemented. Would be a cool feature.  
One way is to implement a component and add it into the rest of your plugin. To allow dragging parts of the GUI and make it effect something in your DSP is a bigger endeavour.

---

<div class="post-metadata">

### Author: ![Jan](https://forum.foleysfinest.com/letter_avatar_proxy/v4/letter/j/ce7236/32.png) [@Jan](https://forum.foleysfinest.com/u/Jan)
#### Post date: [26 February 2025 09:38 UTC](https://forum.foleysfinest.com/t/adding-custom-container/208/3 "2025-02-26T09:38:58Z")

</div>

Ah no what I meant is that I want to make my own adjusted version of foleys::Container aka View

---

<div class="post-metadata">

### Author: ![daniel](https://forum.foleysfinest.com/user_avatar/forum.foleysfinest.com/daniel/32/5_2.png) [@daniel](https://forum.foleysfinest.com/u/daniel)
#### Post date: [26 February 2025 09:53 UTC](https://forum.foleysfinest.com/t/adding-custom-container/208/4 "2025-02-26T09:53:05Z")

</div>

That might be tricky. You can have a look at foleys::GuiContainer. Maybe inherit from that one, but expect dragons. It is not designed for that purpose.

What are you trying to do in that bespoke container?
