# Customer Rotary Sliders

**URL:** <https://forum.juce.com/t/customer-rotary-sliders/18925>\
**Category:** General JUCE discussion\
**Created:** [September 1, 2016, 2:37pm UTC](https://forum.juce.com/t/customer-rotary-sliders/18925 "2016-09-01T14:37:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeyImRige](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@HeyImRige](https://forum.juce.com/u/HeyImRige)\
**Post date:** [September 1, 2016, 2:37pm UTC](https://forum.juce.com/t/customer-rotary-sliders/18925/1 "2016-09-01T14:37:55Z")

</div>

I’m trying to learn how custom look and feel works and I have a quick question. I’m trying to make a knob that looks like a rotary slider, but dragging it only works vertically. Should I be trying to re-skin a vertical slider or should I be trying to alter the feel of the rotary slider?  
I have a feeling I could get it to work both ways…but I’d like to know if there is one way that’s easier or more intuitive than the other.

Thanks!

---

<div class="post-metadata">

**Author:** ![tlongabaugh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tlongabaugh/32/18640_2.png) [@tlongabaugh](https://forum.juce.com/u/tlongabaugh)\
**Post date:** [September 1, 2016, 2:58pm UTC](https://forum.juce.com/t/customer-rotary-sliders/18925/2 "2016-09-01T14:58:54Z")

</div>

The Slider class has a style `RotaryVerticalDrag`, which should provide the functionality you want. If you want a custom look, I think the easiest approach is to subclass Slider, set the slider style to be `RotaryVerticalDrag`, and then override the `paint()` method with your custom drawing.

---

<div class="post-metadata">

**Author:** ![HeyImRige](https://avatars.discourse-cdn.com/v4/letter/h/85f322/32.png) [@HeyImRige](https://forum.juce.com/u/HeyImRige)\
**Post date:** [September 1, 2016, 4:19pm UTC](https://forum.juce.com/t/customer-rotary-sliders/18925/3 "2016-09-01T16:19:42Z")

</div>

Really glad I came to the forums. I definitely would have done things the hard way haha.

Thanks a ton!
