using spinner uicontrol


Using w10 and scilab 6.1.0.

In a GUI, a spinner uicontrol with these arguments... "min",0 ,"max",45..."value","22",... "sliderStep", [0.001, 1]...

I have some questions about:

the "sliderStep" second argument "1" seems have no effect. One can use the uicontrol or the kbd arrow, the step is always 0.001 as the first argument.

Concerning the first argument "0.001": it works but if one try "0.0001" or less, there is a strange behaviour. The actual edit field would show only two figures: 22,0001 and 21,9999 (with a step=0.0002). It will never go any further up neither down. We still can edit the GUI uicontrol field to another gross value, the strange behaviour wil remain around the new edited figure.

There is another strange behaviour about the spinner edit field: it does not accept the decimal dot "." instead it is necessary to use the coma ",". If I want to put 21.4, I should write 21,4. If 21.4 was the "value" in the script file, the GUI would show 21,4 anyway.

By the way, if seems to be impossible to show more than five digits after the decimal point in this spinner edit field even with the actual scilab environment: format() answers 1,10 (try to apply format("v",16) has no effect)

Thank you for any help understanding for a newbie.

Scilab 03-05-20, 6:58 p.m. B@Ksva

Log-in to answer to this question.