Compact look and feel for popup menu

I’m trying to write a stylised popup menu for my plugin which should look like this :

i.e. the presets from the submenus and the submenus themselves should be in a single component (or mimic it). Is it possible to achieve this just by overriding juce popup menu LookAndFeel and the Popupmenu::Options or do i need to write my own component?

bump.

I suspect you will need to roll your own. Having a quick look at the PopupMenu code, a new Component is created for each submenu, which also takes into account positions on the screen to place that Component.

Oh, okay. Will update here once it is done.

If anybody is interested. I’ve implemented it using the popup menu with the custom component. The custom component is a wrapper that holds everything (nothing inside this custom component uses popup menu), presets on click send a callback to the actual target from where the popup menu is spawned which dismisses all the menus (this worked for me as my plugin can only have one menu open at a time). Feel free to ask more details if interested.

Just out of interest, what is the advantage here over the normal implementation?

Just for the look, and maintaining the style to go with other components, instead of the popup’s being at different positions it looks like they are being shown from the same position.