Dear jcl,
this seems not to work as expected.
If I for instance code something like this:
void main()
{
slider(1, 0, 0, 100, "Test");
slider(1, 0); //it should be useless
printf("\nSlider value: %i", slider(1));
int slider_output = 0;
int count = 0;
while(slider_output == 0)
{
if(count % 100 == 0)
{
printf("\n### Change value of slider 1 ###");
}
wait(1000);
slider_output = slider(1);
count++;
}
printf("\nnow slider has value: %i", slider_output);
quit();
}
... when I run it , it produces a nice output:
Slider value: 0
### Change value of slider 1 ###
now slider has value: 3
Quit
But then, as soon as I re-run the script without recompiling/shutting down Zorro/changing scritp, without touching ANYTHING (e.g. not shifting the slider back in the GUI), I still obtain
Slider value: 0
### Change value of slider 1 ###
now slider has value: 3
Quit
...meaning that the GUI "fixed" slider is not reset programmatically and that it overwrites (or immediately changes back the programmatically-set slider value) to its position...
This was what I meant.