Author Topic: How do I get around checkboxes and sliders having different variable handling?  (Read 720 times)

Checkboxes show the value of a variable that is either 0 or 1 through using a check in a box, and when you click it, it changes the variable. Sliders, on the other hand, will store a variable between two values and when you click the slider it modifies the variable to fit the position of the slider.

The biggest difference is that if I change the variable the slider or checkbox represents through external code, the checkbox will change but the slider won't. I think this is because the variable of the slider is stored in the GUI and for the checkbox, it's not. How do I get around this?

Works for me, how are you doing it?
Maybe you're trying to change value instead of using setValue(#) ?

Works for me, how are you doing it?
Maybe you're trying to change value instead of using setValue(#) ?
I've never used setValue() to change variables, but it makes sense that that would affect the GUI aswell. I'll try that...
« Last Edit: October 08, 2012, 01:56:07 AM by darerd »