Never mind, I see that I can create my own custom knob image slider. :oops: Sorry guys, coded nearly non-stop for days and days, brain tired, overload. Ok, here´s the updated code, below the link to the author original post, (martinrobinson) I just updated to work on the latest Juce files.
[code]// -------------------------------------------------------------------------------------------------------------------------------
class FilmStripKnob : public Slider
{
public:
FilmStripKnob(Image image, const int numFrames, const bool stripIsHorizontal)
: Slider(),
numFrames_(numFrames),
isHorizontal_(stripIsHorizontal),
filmStrip(image)
{
setTextBoxStyle(NoTextBox, 0, 0, 0);
if (isHorizontal_) {
frameHeight = filmStrip.getHeight();
frameWidth = filmStrip.getWidth() / numFrames_;
}
else {
frameHeight = filmStrip.getHeight() / numFrames_;
frameWidth = filmStrip.getWidth();
}
}
void paint(Graphics& g)
{
int value = (getValue() - getMinimum()) / (getMaximum() - getMinimum()) * (numFrames_ - 1);
if (isHorizontal_) {
g.drawImage(filmStrip, 0, 0, getWidth(), getHeight(),
value * frameWidth, 0, frameWidth, frameHeight);
}
else {
g.drawImage(filmStrip, 0, 0, getWidth(), getHeight(),
0, value * frameHeight, frameWidth, frameHeight);
}
if (isMouseOverOrDragging())
{
}
}
int getFrameWidth() const { return frameWidth; }
int getFrameHeight() const { return frameHeight; }
private:
Image filmStrip;
const int numFrames_;
const bool isHorizontal_;
int frameWidth, frameHeight;
};[/code]
http://www.rawmaterialsoftware.com/viewtopic.php?p=21998#p21998