Pulling handle from messagebox within GUI

조회 수: 7 (최근 30일)
Chris
Chris 2011년 7월 5일
Hey Community,
My question is whether I can pull the handle from a messagebox that I create. I have a button that maps some GPS data and I don't want it to plot if another value isn't set. I have an if statement that checks if the needed value is set and a messagebox pops up if it isn't. However, the data then plots (incorrectly) on the messagebox rather than the gui itself
If i could pull the handle from the messagebox then I could use uiwait to hold the loop and not have it plot until the messagebox was closed by pressing the 'ok' button. Any ideas?
Thanks guys,
Chris

채택된 답변

Paulo Silva
Paulo Silva 2011년 7월 5일
I don't see a problem there because it works just fine
uiwait(msgbox('Message'))
or
waitfor(msgbox('Message'))
  댓글 수: 1
Chris
Chris 2011년 7월 5일
I didn't realize that it would be that simple, but yes that works perfectly. Thanks Paulo.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by