- the first input to uialert is the handle to your app figure (app.UIFigure) so that the alert appears on top of the app no matter where its postion is on the screen.
- The default 'modal' value for uialert is 'true' which means your app is disabled until the user interacts with the alert. For msgbox, the default create-mode is non-modal which means the msgbox will not prevent further user interaction.
- There's also some nice built-in icons available with uialert and its general aesthetic matches app designer better than msgbox.
- uialert has an optional close request callback function that you can define and it executes when the alert window is closed.
Why should i not use msgbox in App Designer?
26 次查看(过去 30 天)
显示 更早的评论
Why should i not use msgbox in App Designer?
The site is saying:
If you are using App Designer or creating apps with the uifigure function, then use uialert instead. For more information, see Migrating GUIDE Apps to App Designer.
msgbox is a tool that i know and it works fine for me. Why should i not use it?
thanks!
0 个评论
采纳的回答
Adam Danz
2019-6-26
uialert() was designed to work will app designer and has several nice features. For example,
5 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!