# Show/Hide Slider text box on mouse event

**URL:** <https://forum.juce.com/t/show-hide-slider-text-box-on-mouse-event/16176>\
**Category:** Audio Plugins\
**Created:** [December 9, 2015, 3:16am UTC](https://forum.juce.com/t/show-hide-slider-text-box-on-mouse-event/16176 "2015-12-09T03:16:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sstillwell](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@sstillwell](https://forum.juce.com/u/sstillwell)\
**Post date:** [December 9, 2015, 3:16am UTC](https://forum.juce.com/t/show-hide-slider-text-box-on-mouse-event/16176/1 "2015-12-09T03:16:38Z")

</div>

I'm trying to replicate some of my existing UI behavior in a JUCE-based plugin&nbsp;and doing fairly well so far. &nbsp;One thing that doesn't seem to have an obvious solution, though, is the ability to present the value text box for a given slider (or other widget) when a user performs an action - say right-clicking on the control (or double-clicking if one was on Pro Tools, etc.)

I can intercept the mouse event and handle it, but I don't see an obvious way to hide the text box other than to set the text box style to "no text box". &nbsp;I'd like to be able to position the text box arbitrarily as well - sometimes it should overlay a portion of the slider, sometimes over a text label displaying the value. &nbsp;Escape or clicking out of the text box should cancel the edited value, hitting Enter should accept and end the edit, hiding the box.

Ideas? &nbsp;Am I just missing something obvious?

Thanks in advance...
