-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace COptionMenu with juce::PopupMenu #4341
Comments
Really want to go to the superior juce::PopupMenu API even though the escape stuff kinda works. Debugging escape vs rewriting the menus - better to fix th emenus. So this shows a first example - the scene copy / paste is now entirely native juce::PopupMenu Addresses surge-synthesizer#4341
Really want to go to the superior juce::PopupMenu API even though the escape stuff kinda works. Debugging escape vs rewriting the menus - better to fix th emenus. So this shows a first example - the scene copy / paste is now entirely native juce::PopupMenu Addresses #4341
Alright so here is a short guide for 'how to replace a COptionMenu with a juce::PopupMenu' but basically VSTGUI looks like
that second part we often wrap in a little lambda called 'addCallbackFunction'. Then we have to With juce popup menus we don't actually have to do most of that. A simple juce popup menu example would be
and that will show the 3 element menu. The full documentation is https://docs.juce.com/master/classPopupMenu.html but you will see things like multiple instances of addItem. For instance Adding a submenu is similarly easy. You use
which would give you
Right now JUCE menus can't put checkmarks on parent submenus. If you come across a case where you have to do that put a FIXME in the code and I'll fix it once I have that fixed. I know how to fix it and it is easy enough change (basically just a quick subclass). As a first try I would recommend making the OSC copy and paste menu (around line 1930 of SGE) and convert that. Then try a few of the MSEGs. Once we have it down we can push through and get the rest of them. |
Also unbloat the on/off switches in MSEG editor context menu while at it Addresses surge-synthesizer#4341
Also unbloat the on/off switches in MSEG editor context menu while at it Addresses #4341
The juce API is more robust. Over the summer go through and replace the escape_from_vstgui COptionMenu with juce::PopupMenu. This issue tracks the menus we have to do as checklists
The text was updated successfully, but these errors were encountered: