[code]/**
A window that displays a pop-up tooltip when the mouse hovers over another component.
To enable tooltips in your app, just create a single instance of a TooltipWindow
object.
The TooltipWindow object will then stay invisible, waiting until the mouse
hovers for the specified length of time - it will then see if it's currently
over a component which implements the TooltipClient interface, and if so,
it will make itself visible to show the tooltip in the appropriate place.
@see TooltipClient, SettableTooltipClient
*/
class JUCE_API TooltipWindow : public Component,
private Timer
{
public:[/code]
The demo app must have changed since 2012. As far as I can see, there is no longer any “TooltipWindow” text, in any source file in the “examples/demorunner” folder.
So for anyone needing help, simply declare like below. Two options, first for just default settings, and second to specify parameters.