Effacer les filtres
Effacer les filtres

AppDesigner Spinner with non-integer stepsize

4 vues (au cours des 30 derniers jours)
ltu
ltu le 15 Mar 2017
Commenté : ltu le 1 Avr 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

Réponse acceptée

Afiq Azaibi
Afiq Azaibi le 23 Mar 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 commentaire
ltu
ltu le 1 Avr 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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by