Hi everyone,
Here is the code from the Scripting Index for creating a Slider Box:
Names Default To Here( 1 );
sliderValue = .6;
New Window( "Example",
Panel Box( "Slider Box",
tb = Text Box( "Value: " || Char( sliderValue ) ),
sb = Slider Box(
0,
1,
sliderValue,
tb << Set Text( "Value: " || Char( sliderValue ) )
)
)
);
If you run this example, you can right-click the slider to set a specific value:
Let's suppose I set this to 0.8. If I do, the slider moves, but the script associated with the slider fails to execute. That is, the text box above the slider doesn't update.
Question 1: Why?
Question 2: Is there a different way to transfer the new value to the Text Box? I tried to convert the code to use the Set Function message but this didn't solve it.
I have observed that if you right click a slider in a Platform (such as Custom Profiler) and Set Value that the platform seems to respond correctly (slider and associated Text Edit Box both move as expected), so I can tell there is some way to do this in JSL. I just don't know what that is.
I'm running 15.2.1 Pro on a Mac.
Michael