# TooltipWindow displaying on wrong plugin instance (resolved)

**URL:** <https://forum.juce.com/t/tooltipwindow-displaying-on-wrong-plugin-instance-resolved/20838>\
**Category:** Audio Plugins\
**Created:** [February 4, 2017, 10:14am UTC](https://forum.juce.com/t/tooltipwindow-displaying-on-wrong-plugin-instance-resolved/20838 "2017-02-04T10:14:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Verbonaut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/verbonaut/32/11824_2.png) [@Verbonaut](https://forum.juce.com/u/Verbonaut)\
**Post date:** [February 4, 2017, 10:14am UTC](https://forum.juce.com/t/tooltipwindow-displaying-on-wrong-plugin-instance-resolved/20838/1 "2017-02-04T10:14:03Z")

</div>

Hi

I’m having an issue where a TooltipWindow can sometimes be shown on the wrong instance of a plugin if I have multiple instances open. Typically hovering over a component on the 2nd opened instance will display the tooltip on the 1st opened instance.

I believe I’m using the Juce TooltipWindow as per [the recommendations](https://www.juce.com/doc/classTooltipWindow) by creating it with a SharedResourcePointer as follows  
`SharedResourcePointer<juce::TooltipWindow> tooltip_window;`

I am then simply doing an addAndMakeVisible in the constructor of my top level component for it and a setTooltip on a slider. I’ve tried this in a fresh project.

Have I misunderstood how I should be using this class?

Thanks  
Matt

---

<div class="post-metadata">

**Author:** ![lalala](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lalala/32/8577_2.png) [@lalala](https://forum.juce.com/u/lalala)\
**Post date:** [February 4, 2017, 2:50pm UTC](https://forum.juce.com/t/tooltipwindow-displaying-on-wrong-plugin-instance-resolved/20838/2 "2017-02-04T14:50:31Z")

</div>

> [@hill\_matthew](#):
>
> I am then simply doing an addAndMakeVisible in the constructor of my top level component

My guess is that this is the reason, and that you should not add it as a child of your component (as it is shared between the different plugins instances).  
Don’t set it any parent, it will be on the desktop.

---

<div class="post-metadata">

**Author:** ![Verbonaut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/verbonaut/32/11824_2.png) [@Verbonaut](https://forum.juce.com/u/Verbonaut)\
**Post date:** [February 4, 2017, 4:35pm UTC](https://forum.juce.com/t/tooltipwindow-displaying-on-wrong-plugin-instance-resolved/20838/3 "2017-02-04T16:35:14Z")

</div>

That’s solved it, thank you.
