Pulling handle from messagebox within GUI
5 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Paulo Silva
2011-7-5
I don't see a problem there because it works just fine
uiwait(msgbox('Message'))
or
waitfor(msgbox('Message'))
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!