Is there an easier way to disable all the buttons in matlab app designer?
14 ビュー (過去 30 日間)
古いコメントを表示
I wanted to know if there is an easier way to disable or enable all the buttons without calling each one separately. I was hoping to be able to press a start button which would then enable all the buttons in the app.
app.Button_1.Enable = "off";
app.Button_2.Enable = "off";
app.Button_3.Enable = "off";
app.Button_4.Enable = "off";
app.Button_5.Enable = "off";
app.Button_6.Enable = "off";
app.Button_7.Enable = "off";
app.Button_8.Enable = "off";
app.Button_9.Enable = "off";
0 件のコメント
回答 (1 件)
Matt J
2022 年 4 月 15 日
編集済み: Matt J
2022 年 4 月 15 日
h= findobj(app.UIFigure,'Type','uibutton');
set(h,'Enable','off')
4 件のコメント
Matt J
2022 年 6 月 3 日
@Gert Persson's comment moved here:
Yes, this will work fine for me!
Thanks a lot for your help Matt!
Matt J
2022 年 6 月 3 日
You're welcome, but please Accept-click the answer to indicate that it helped.
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!