フィルターのクリア

Help me about msgbox in Matlab GUI ?

5 ビュー (過去 30 日間)
Nguyen Trong Nhan
Nguyen Trong Nhan 2013 年 12 月 28 日
回答済み: Image Analyst 2013 年 12 月 28 日
I made a guide for my applet, now I create a message box by command:
h = msgbox('My physics applet is about to start,','MyApp');
In that msgbox, It have an OK button. Now I want that: when I press the OK button in the first msgbox, It 'll appear second message box.
thanks you very much

採用された回答

Image Analyst
Image Analyst 2013 年 12 月 28 日
Where does the second msgbox come from? What does it say? Do you need it to wait for the user to click OK in the first message box before continuing on with your code?
I usually do
uiwait(msgbox('whatever I want to say'));
but actually I've made a msgboxw() function as it's own m-file and saved it to a folder on my path.
function msgboxw(message)
uiwait(msgbox(message));
Then I just call msgboxw('hello world') whenever I need a message box that displays and waits for me to click ok before barreling on with the code.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 12 月 28 日
Add
uiwait(h)
after the msgbox() call

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by