Why should i not use msgbox in App Designer?

25 ビュー (過去 30 日間)
Christian Tieber
Christian Tieber 2019 年 6 月 26 日
コメント済み: Waffiq Aziz 2021 年 6 月 9 日
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!

採用された回答

Adam Danz
Adam Danz 2019 年 6 月 26 日
uialert() was designed to work will app designer and has several nice features. For example,
  • 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.
  5 件のコメント
Christian Tieber
Christian Tieber 2019 年 6 月 28 日
Alright. Thanks for your help guys!
Waffiq Aziz
Waffiq Aziz 2021 年 6 月 9 日
i try msgbox() on R2021a and still works, thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by