What is the best way to implement a sample Menu?

Hello everyone, I would like to add a menu to my drumpad vst to allow users to drag and drop sample from this menu directly on the pad. what class should I use ?
THank you and have a good week and a good day !!!

There are several different types of menu listed here. Which one to choose depends on the behaviour you want. The ones that I’ve used allow you to replace menu items with custom Components, which should be useful if you want to do stuff like sample drag and drop.

For drag and drop functionality, you can use DragAdDropTarget and DragAndDropContainer.

1 Like

thank you for your answer. But
I don’t really understand on each of these menus how to add items…

Isn’t there an ‘Example Menu’ example that ships with JUCE?

[edit] here it is.