フィルターのクリア

AppDesigner Spinner with non-integer stepsize

4 ビュー (過去 30 日間)
ltu
ltu 2017 年 3 月 15 日
コメント済み: ltu 2017 年 4 月 1 日
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

採用された回答

Afiq Azaibi
Afiq Azaibi 2017 年 3 月 23 日
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 件のコメント
ltu
ltu 2017 年 4 月 1 日
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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by