Outline of Equator style menu widget implementation?


#1

Please could someone outline how to go about achieving something like Equator’s GUI menu:

Is it (likely to be) a DrawableButton which shows a PopupMenu (with a custom LookAndFeel) populated from an ApplicationCommandManager?

Any advice as to how to elegantly do this much appreciated as I’m about to write something similar. If anyone can point me towards any code examples that’d be great!

I’m also intrigued to know how the darkening of background components whilst the menu is modal might be implemented - will the menu component simply occupy the full bounds of the plugin interface?


#2

The menus are not JUCE menus but custom components. In fact, when opening a menu, a component is created and enters a modal state. The component overlays the whole window area and draws a semi transparent dark colour. The menu is another subcomponent of this component which is derived from JUCE’s ListBox.


#3

Many thanks @Fabian for the explanation!

Do the menu’s commands get populated from another class (e.g. ApplicationCommandManager), or are the commands implemented directly within the menu component itself?


#4

It’s implemented directly within the menu. But just because it’s in Equator does not mean it’s necessarily the best way to do it.