# Slider suggestion

**URL:** <https://forum.juce.com/t/slider-suggestion/2002>\
**Category:** General JUCE discussion\
**Created:** [August 9, 2007, 1:58pm UTC](https://forum.juce.com/t/slider-suggestion/2002 "2007-08-09T13:58:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grossebete](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@grossebete](https://forum.juce.com/u/grossebete)\
**Post date:** [August 9, 2007, 1:58pm UTC](https://forum.juce.com/t/slider-suggestion/2002/1 "2007-08-09T13:58:31Z")

</div>

Hi again 🙂

In the code I’m working on, there’s a custom lookandfeel that draws the fill of normal-sized Rotary sliders a bit differently:

When there’s a default value (Slider::setDoubleClickReturnValue) set on the slider, the fill is drawn from the position of this value to the actual position of the slider.

These few extra lines allows those who want it to have rotary panpots and eq gains with a very neutral look when in a bypassed position.

I just thought I could share the idea 🙂

---

<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:** [August 9, 2007, 2:09pm UTC](https://forum.juce.com/t/slider-suggestion/2002/2 "2007-08-09T14:09:06Z")

</div>

Yes - nice idea!

---

<div class="post-metadata">

**Author:** ![Rock\_Hardbuns](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Rock\_Hardbuns](https://forum.juce.com/u/Rock_Hardbuns)\
**Post date:** [August 9, 2007, 2:46pm UTC](https://forum.juce.com/t/slider-suggestion/2002/3 "2007-08-09T14:46:37Z")

</div>

I implemented a similar thing, though I always draw from zero. I posted the code a long while ago.

Edit \>

Here it is. Just two lines by the looks of it:  
[http://www.rawmaterialsoftware.com/juceforum/viewtopic.php?p=6457](http://www.rawmaterialsoftware.com/juceforum/viewtopic.php?p=6457)

---

<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:** [May 12, 2017, 10:14am UTC](https://forum.juce.com/t/slider-suggestion/2002/4 "2017-05-12T10:14:34Z")

</div>

Closed on May 12, 2017, 10:14am UTC


