# Displaying the tooltip while adjusting a slider?

**URL:** <https://forum.juce.com/t/displaying-the-tooltip-while-adjusting-a-slider/7135>\
**Category:** General JUCE discussion\
**Created:** [July 7, 2011, 4:29pm UTC](https://forum.juce.com/t/displaying-the-tooltip-while-adjusting-a-slider/7135 "2011-07-07T16:29:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![synthdan](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@synthdan](https://forum.juce.com/u/synthdan)\
**Post date:** [July 7, 2011, 4:29pm UTC](https://forum.juce.com/t/displaying-the-tooltip-while-adjusting-a-slider/7135/1 "2011-07-07T16:29:28Z")

</div>

The tooltip window seems to be largely out of our control. What I’d like to do is have the tooltip window show up at a particular location and display a slider’s value while I’m adjusting the slider. Is there any means to do this? Or could I create a new tooltip object that extends the standard Tooltip window object, that I can have more control over? Or would I have to do this by creating my own slider object?

Any help would be appreciated.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 7, 2011, 4:32pm UTC](https://forum.juce.com/t/displaying-the-tooltip-while-adjusting-a-slider/7135/2 "2011-07-07T16:32:30Z")

</div>

Why not use Slider::setPopupDisplayEnabled() ?

---

<div class="post-metadata">

**Author:** ![synthdan](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@synthdan](https://forum.juce.com/u/synthdan)\
**Post date:** [July 7, 2011, 5:50pm UTC](https://forum.juce.com/t/displaying-the-tooltip-while-adjusting-a-slider/7135/3 "2011-07-07T17:50:31Z")

</div>

Hi Jules,

The setPopupDisplayEnabled() popup looks great but it only displays the value of the knob (in my case, 0.0 to 1.0), and doesn’t allow me to display a translated value (i.e. 18000 Hz, or 2.5 seconds, or +6dB, or 90%, etc.). The tooltip feature of course let’s me format the data before it’s displayed.

Is there a way to control what is displayed by setPopupDisplayEnabled()?

Thanks!  
Dan

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [July 7, 2011, 7:43pm UTC](https://forum.juce.com/t/displaying-the-tooltip-while-adjusting-a-slider/7135/4 "2011-07-07T19:43:18Z")

</div>

You could overload getTextFromValue() ?

---

<div class="post-metadata">

**Author:** ![synthdan](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@synthdan](https://forum.juce.com/u/synthdan)\
**Post date:** [July 7, 2011, 8:37pm UTC](https://forum.juce.com/t/displaying-the-tooltip-while-adjusting-a-slider/7135/5 "2011-07-07T20:37:38Z")

</div>

YES! That’s perfect. Thanks!

Dan
