Filter löschen
Filter löschen

AppDesigner Spinner with non-integer stepsize

3 Ansichten (letzte 30 Tage)
ltu
ltu am 15 Mär. 2017
Kommentiert: ltu am 1 Apr. 2017
Hi all,
I'm trying to create an app that includes a spinner component with a display precision of one decimal and a stepsize of 0.1 but whenever I try to set the stepsize to 0.1 I get an error message saying: "Step must be numeric and when rounding is on it must be a whole number".
I've unchecked the "round to nearest integer" checkbox and under display I've chosen "exactly one decimal". (Also I'm using 2017a)
Can someone please tell me what I'm doing wrong :-)
Thanks in advance! Kind regards / H

Akzeptierte Antwort

Afiq Azaibi
Afiq Azaibi am 23 Mär. 2017
Your workflow is reasonable and it should work. Currently, those options are under the "Design View". In order to change the step size to a non integer value, go into the "Code View" and there, under the "Inspector" you will see that you can set the step size to a decimal value under the "Step" value. I work for MathWorks and have forwarded this information to the App Designer team.
  1 Kommentar
ltu
ltu am 1 Apr. 2017
Hi Afiq,
Thank you so much for you answer! I honestly never noticed the inspector tab before (just gave up when I noticed that the code in the createComponents function couldn't be edited).
Thanks again! BR / H

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by