How to Disable Button in Dialog Box
9 次查看(过去 30 天)
显示 更早的评论
Hello
btnOpt_1 = 'Collect new data';
btnOpt_2 = 'Use saved data';
answer = questdlg('Please choose data source :' , 'FilterWheel' , btnOpt_1 , btnOpt_2 , btnOpt_2);
I want my btnOpt_1 to be Disabled (grayed-out). How can this be done?
THANK YOU!
1 个评论
采纳的回答
Arthur Roué
2020-8-11
You cannot disable a button using questdlg function. The only thing you can do is to remove the option.
If you do want a grayed-out button, build your own GUI, I can help you if you need help on this point, just ask in comment.
4 个评论
Arthur Roué
2020-8-13
If you launch GUIDE (write guide in command window), one of the template is a modal question dialog box.
You can start with this example, and correct the code as you wish.
更多回答(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!