How to set ControlP5.Range "set high value label" and setArrayValue
in
Contributed Library Questions
•
1 year ago
Hi
I have encountered two problems with the ContolP5.Range class.
First question is setLow/HighValue() vs setArrayValue()
I have encountered two problems with the ContolP5.Range class.
First question is setLow/HighValue() vs setArrayValue()
- //This works but yields to controller events
- adlDateRange.setLowValue((float)animationRunnerStart);
- adlDateRange.setHighValue((float)animationRunnerEnd);
- //This does not seem work?
- //Atleast it does not trigger a controller event. But if I click the bar it jumps to the udpated position.
- adlDateRange.setArrayValue(new float[]{(float)animationRunnerStart,(float)animationRunnerEnd});
Also is there anyway to set values without triggering controller events?
Second question is how to set high value label?
Second question is how to set high value label?
- //Only sets the value for the low value label
- adlDateRange.setValueLabel(super.sdf.format(super.date[animationRunnerStart]));
Is there anyway to set the high value label?
Thanks,
Martin
Thanks,
Martin
1