I’m trying to use a TwoValueHorizontal inside of a SliderPropertyComponent but I keep gettings lots of assertion failures.
SMTrackSlider (const juce::String &propertyName) : SliderPropertyComponent(propertyName,1,99,1)
{
slider->setSliderStyle(Slider::TwoValueHorizontal);
slider->setMinValue(1);
slider->setMaxValue(99);
slider->setPopupDisplayEnabled(true,this);
}[/code]
Assertions occur
[code]void Slider::setValue (double newValue,
const bool sendUpdateMessage,
const bool sendMessageSynchronously)
{
// for a two-value style slider, you should use the setMinValue() and setMaxValue()
// methods to set the two values.
jassert (style != TwoValueHorizontal && style != TwoValueVertical);[/code]
and
[code]double Slider::getValue() const throw()
{
// for a two-value style slider, you should use the getMinValue() and getMaxValue()
// methods to get the two values.
jassert (style != TwoValueHorizontal && style != TwoValueVertical);
Any chance of a MultiValueSliderPropertyComponent?
Thanks for the heads-up about that wheel thing, I’ll put in some code to sort it out. A multi-slider property comp is a good idea, but low on my priority list!