How to disable a button later in the program on gui
49 次查看(过去 30 天)
显示 更早的评论
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???
0 个评论
采纳的回答
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 Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!