how to create a msgbox without "ok" button?

57 views (last 30 days)
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 Comments
Doug Hull
Doug Hull on 19 Dec 2012
If there is no button, what would you do to close it? MSGBOX is a convenience, you can write your own GUI pretty easy.
A
A on 19 Dec 2012
I would do this:
h=<dialog>('please wait');
<calculation>
close (h);

Sign in to comment.

Accepted Answer

Sean de Wolski
Sean de Wolski on 19 Dec 2012
It sounds like you want a waitbar.
doc waitbar
  2 Comments
A
A on 19 Dec 2012
that would be nice; except the calculation is actually just a save command to save 2 gigs of data; so there is no way to track progress in a waitbar
Sean de Wolski
Sean de Wolski on 19 Dec 2012
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)

Sign in to comment.

More Answers (0)

Categories

Find more on Dialog Boxes in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!