I want to show the host context menu for a parameter when the user makes a right click on a slider. The host then shows something related to the parameter, for example a MIDI learn function.
Is this already supported in JUCE or is there a solution for this?
I might be mistaken, but I think this is actually for instances when you create your GUI with the VST framework?
Looking at the IPlugView suggests that and the comment in the code example you linked:
// this will be called if the user has executed one of the menu items of the Plug-in.
// It won't be called for items of the host.
Thanks for the answer. Yes, it looks like it’s some kind of feature in the plugininterface. The interesting part is following:
A Plug-in can ask the host to create a context menu for a given exported Parameter ID or a generic context menu.
The host may pre-fill this context menu with specific items regarding the parameter ID like “Show automation for parameter”, “MIDI learn” etc…
This is a nice and useful feature. It looks like it’s possible to ask the host for context menu entries for a specific parameter. There are plugins that already support this feature and a user already asked for this.
I think we can’t ignore it. It’s a part of the VST3 workflow and some moderne hosts already support this.