How to disable a button later in the program on gui

79 ビュー (過去 30 日間)
Zayne
Zayne 2011 年 9 月 8 日
コメント済み: Zoya Saevna 2021 年 7 月 3 日
I want to disable the roll button of a dice,after the player of my snakes and ladders program,has landed on 100......what function can I use to disable the button???

採用された回答

Paulo Silva
Paulo Silva 2011 年 9 月 8 日
%assuming you are using GUIDE and the button is called pushbutton1
set(handles.pushbutton1,'Enable','off')
After the code that rolls the dice finishes re-enable the button
%assuming you are using GUIDE and the button is called pushbutton1
set(handles.pushbutton1,'Enable','on')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by