# Rotary Sliders: Removing the pointy gauge thing

**URL:** <https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503>\
**Category:** General JUCE discussion\
**Created:** [April 26, 2016, 5:57pm UTC](https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503 "2016-04-26T17:57:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melefono](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/melefono/32/1806_2.png) [@Melefono](https://forum.juce.com/u/Melefono)\
**Post date:** [April 26, 2016, 5:57pm UTC](https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503/1 "2016-04-26T17:57:52Z")

</div>

I figured out how to add a rotary slider to a component. But now I want to style it; specifically removing the pointy gauge thing. Does anyone know?

---

<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:** [April 26, 2016, 6:25pm UTC](https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503/2 "2016-04-26T18:25:16Z")

</div>

Hi Melefono,  
you have to create your “look and feel” class.  
Check the Juce demo application, there is a small demo just about lookAndFeels.

---

<div class="post-metadata">

**Author:** ![Melefono](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/melefono/32/1806_2.png) [@Melefono](https://forum.juce.com/u/Melefono)\
**Post date:** [April 26, 2016, 6:47pm UTC](https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503/3 "2016-04-26T18:47:14Z")

</div>

What about the gauge pointer thing?

---

<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:** [April 26, 2016, 7:50pm UTC](https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503/4 "2016-04-26T19:50:12Z")

</div>

What about it?  
If you do open the lookAndFeel demo, and select the “custom look and feel” or “square look and feel”, you’ll see 2 examples about how to draw a rotary slider without any “gauge pointer”.  
If you create your own look and feel, you can then draw what you want. the drawing code of the rotary knobs is in drawRotarySlider()

---

<div class="post-metadata">

**Author:** ![Melefono](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/melefono/32/1806_2.png) [@Melefono](https://forum.juce.com/u/Melefono)\
**Post date:** [April 27, 2016, 9:14pm UTC](https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503/5 "2016-04-27T21:14:12Z")

</div>

So far I’ve managed to setup my own laf class. I’ve been trying to add the a rotary with my laf class style, but when I run it, it just shows the default style everytime.

---

<div class="post-metadata">

**Author:** ![jakemumu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jakemumu/32/13038_2.png) [@jakemumu](https://forum.juce.com/u/jakemumu)\
**Post date:** [April 27, 2016, 9:47pm UTC](https://forum.juce.com/t/rotary-sliders-removing-the-pointy-gauge-thing/17503/6 "2016-04-27T21:47:37Z")

</div>

rotarySlider-\>setLookAndFeel(customLookAndFeel);
