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.