MyProcessorEditor()
{
tooltipWindow = new TooltipWindow(this);
}
ScopedPointer<TooltipWindow> tooltipWindow;
}[/code]
Which gets created at construction of the editor. When I open two instances of the plugin (tried in cubase and bidule) and hover over a control in one window a tooltip appears in both windows.
It does look like this has to do with multiple instances of the TooltipWindow. It would be nice to have a guide on how to use TooltipWindow’s in plugins.
There is one ancient thread about using either reference counting or DeleteAtShutdown + singleton on here, but it’s not very enlightening.
Yes, I should add a note about having multiple instances. Personally, I’d probably have just used a static ref-counted pointer, but your code will work too.