So... I want my Sliders to have a default value, an assignable Image resource, an assignable "number of frames" to deal with filmstrips, and a few connected functions (set/get/reset) each. I've created my custom class rchSlider : public Slider etc. to do this, and all the various values and functions appear to be working fine so far.
Now I want to swap the vector drawing against a filmstrip, which already works well when I manipulate the original JUCE module.
But I would prefer a lot to deal with filmstrips in a "clean" way, with something like the void drawRotarySlider(xxx) function of LookAndFeel, and not compromising the integrity of the JUCE framework by hacking around in its sources.
Been screwing around with this for hours now, searching the Web for ages and trying out all sorts of approaches.
struct rchLookAndFeel : public LookAndFeel, class rchLookAndFeel : public LookAndFeel, yada yada.
But whatever I try, it just won't work.
The big issue seems to be that the void drawRotarySlider(xxx) in LookAndFeel expects a Slider& slider, which works fine for drawing some vector arcs and paths that calculate themselves from position and size of the component. But to access the Image resource and the "number of frames" value that I need to make the filmstrip work, I would have to pass a rchSlider& slider into the void drawRotarySlider(xxx) ... and of course the standard void drawRotarySlider(xxx) doesn't like that.
Can anyone point me in the right direction? Can I somehow override the void drawRotarySlider(xxx) inside my class rchSlider? I attempted that already and failed, but I only had half a clue of what I was doing, so... or is it somehow possible to create (for example) something like a void drawRchSlider(xxx) that extends LookAndFeel, accepts an rchSlider& slider and is somehow automagically connected to my custom rchSlider class?
Thankful for any hints!
Cheers,
Rob
