Hello,
I was wondering if anyone knows how to make a slider bar update its marker position if the value it references is
changed by another UI element? For example, I have a series of preset ranges for variables that are set via radio
buttons on model setup. These variables can also be controlled with a slider bar. The user selects a radio button that
changes the variable to x value. The slider bar that also references this variable does not change its marker position
to represent this change in value. Is there some way to call an 'update' to reposition the slider bar markers?
Many thanks,
PJ
Maxim G — 03.05.08
Hi! From radio button I would update the sliders:
I guess in the radio you have:
x = 2;
Update it to
x = 2;
slider_x.setValue( 2 ); // or slider_x.setValue( x );
You could also add a function that does slider_x.setValue( x ); and call this function from any event when x changes.