how to create a msgbox without "ok" button?

조회 수: 53 (최근 30일)
A
A 2012년 12월 19일
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
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.
A
A 2012년 12월 19일
I would do this:
h=<dialog>('please wait');
<calculation>
close (h);

댓글을 달려면 로그인하십시오.

채택된 답변

Sean de Wolski
Sean de Wolski 2012년 12월 19일
It sounds like you want a waitbar.
doc waitbar
  댓글 수: 2
A
A 2012년 12월 19일
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 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 CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by