I’m trying to create a PopupMenu with sub-menus that uses custom components as the PopupMenu Items. I’ve been using addCustomItem() and this works perfectly unless I call addSubMenu(). The sub-menu that appears contains my custom components, but the item in the main menu that triggers the sub-menu is the default juce::PopupMenu::Item. Is there a way to make the item that triggers the sub-menu a custom component as well?
Perhaps another addSubMenu() function could be added to juce::PopupMenu that allows you to pass in a custom component just like addCustomItem() does.
Maybe… not sure whether the menu class internals make that practical or not. Haven’t time to look at it myself, but feel free to dig around and suggest a change if it could be done with a minor tweak.