Trying to create a synthesizer with lots of knobs. Two questions;
Using myKnob.setSliderStyle (Slider::Rotary) it seems to have a lot of invisible margin around the actual visible knob, meaning if I drag my mouse pointer quite a distance out from the knob, it still reacts. Is there anyway to decrease that margin?
Is there any where I can find further detailed information on LookAndFeel public member functions, that explains what they do? For example " drawLinearSliderThumb()" what is its function?
Thanks that may be, but I am not sure how to implement it.
Via the “Customise the look and feel of your app” tutorial, I figured out how to do the following only to override thumb color.
class MyLookAndFeel : public LookAndFeel_V4
{
public:
MyLookAndFeel()
{
setColour(Slider::thumbColourId, Colours::red);
}
};
And I was now wondering how to override also SliderLayout, if it indeed is that which determines margin around the thumb where movement of mouse pointer changes slider position.
This is just an example of how you can use this inside method your own LookAndFeel - i’m not 100% sure it is what you need but it’s worth a shot. Obviously you need to adjust it so that the layout you return is the size and position that you would want.