Borrar filtros
Borrar filtros

AppDesigner Spinner with non-integer stepsize

4 visualizaciones (últimos 30 días)
ltu
ltu el 15 de Mzo. de 2017
Comentada: ltu el 1 de Abr. de 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

Respuesta aceptada

Afiq Azaibi
Afiq Azaibi el 23 de Mzo. de 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 comentario
ltu
ltu el 1 de Abr. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by