Disable tooltipwindow on startup

I have a ‘TooltipWindow’ in my editor, which should only be enabled after hitting a help-button. I set

m_tooltip.setMillisecondsBeforeTipAppears(2047483647);

right on editor creation, however there is a not so small time window after window creation where the tooltip still shows. It will only disappear after not hovering over a tippable component for ~1s.

Is there another way to disable it?

I think if you use a custom tooltip class you can override getTipFor(Component&) so that it will return an empty string until your help option is enabled

https://docs.juce.com/master/classTooltipWindow.html

Nice thanks, works like a charm now! It’s nice to see the remaining minor annoyances vanish from your plugin, making it feel - dare i say it - professional :smiley:

1 Like