CP5 doubt!
in
Contributed Library Questions
•
9 months ago
Hi!
I want to make a slider with CP5 and I want to control their values with a "snap".
I mean, if the snap = 2, the slider values must be 0, 2, 4, 6. If the sanp = 3, then 0, 3, 6.
Teorically, that's not very difficult using functions like setNumberOfTickMarks(), setTickMarkLength(), snapToTickMarks(), setRange(),...
But it makes me an error when I try to use one of these funcitions, like
cp5.getController("mySlider"). setNumberOfTickMarks(4);
it always says... "The function setNumberOfTickMarks(int) does not exist".
But it exists...
Well, any help would be more than welcome!!
Thanks!
I want to make a slider with CP5 and I want to control their values with a "snap".
I mean, if the snap = 2, the slider values must be 0, 2, 4, 6. If the sanp = 3, then 0, 3, 6.
Teorically, that's not very difficult using functions like setNumberOfTickMarks(), setTickMarkLength(), snapToTickMarks(), setRange(),...
But it makes me an error when I try to use one of these funcitions, like
cp5.getController("mySlider"). setNumberOfTickMarks(4);
it always says... "The function setNumberOfTickMarks(int) does not exist".
But it exists...
Well, any help would be more than welcome!!
Thanks!
1