anyway to call checkbox in appdesigner programmatically?
10 ビュー (過去 30 日間)
古いコメントを表示
Hi:
is there anyway to call checkbox in appdesigner programmatically?
Thanks!
Yu
2 件のコメント
Lewis Maina
2020 年 3 月 27 日
yes , below is a section of my code which unticks ShowMultiplicationDivisionOptionsCheckBox.Value programmatically.
hope this helps you
function ShowAdvancedOptionsCheckBoxValueChanged(app, event)
value = app.ShowAdvancedOptionsCheckBox.Value;
switch value
case 0
case 1
app.ShowMultiplicationDivisionOptionsCheckBox.Value = false;
end
Fabian Schnurre
2023 年 12 月 3 日
How does this work on a tree checkbox? there are no values for nodes
採用された回答
Ajay Pattassery
2019 年 9 月 17 日
I assume that you have already created a checkBox in app-designer, and you want to check or uncheck the checkBox programmatically.
You could set the value of CheckBox.Value to one for checking the box and toggling to zero to uncheck the box.
app.CheckBox.Value = 1;
(In the above example, CheckBox handle is stored in the structure app)
2 件のコメント
Adam
2019 年 9 月 17 日
Have your checkbox callback call a new function, passing in the checkbox value and have your other code call that same function.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!