how to create a msgbox without "ok" button?
51 次查看(过去 30 天)
显示 更早的评论
I need to create a "please wait..." message box, that will keep user from interacting with GUI and will close once internal calculation is completed. I don't want it to have the "ok" button. How do I do that?
2 个评论
Doug Hull
2012-12-19
If there is no button, what would you do to close it? MSGBOX is a convenience, you can write your own GUI pretty easy.
采纳的回答
Sean de Wolski
2012-12-19
It sounds like you want a waitbar.
doc waitbar
2 个评论
Sean de Wolski
2012-12-19
Then literally just make a modal figure that says saving...
h = figure('units','pixels','position',[500 500 200 50],'windowstyle','modal');
uicontrol('style','text','string','Saving...','units','pixels','position',[75 10 50 30]);
%blah
close(h)
更多回答(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!