フィルターのクリア

Refreshing app GUI during longer actions

40 ビュー (過去 30 日間)
Lionel Pöffel
Lionel Pöffel 2021 年 10 月 26 日
移動済み: Walter Roberson 2023 年 6 月 28 日
I am designing a MATLAB app which, during a longer action, needs to update certain UI elements in order to indicate progress.
Unfortunately this does not happen. Instead the app GUI immediately jumps to its final appearance and somehow "consumes" the intermediate update steps.
I tried
refresh(app.UIFigure)
but that does not have an effect.
The only thing that helps (but to me is a very dirty work-around) is
pause(0.1)
after each GUI update.
Isn't there a better way?

採用された回答

Walter Roberson
Walter Roberson 2021 年 10 月 26 日
移動済み: Walter Roberson 2023 年 6 月 28 日
Did you try drawnow()?
  1 件のコメント
Lionel Pöffel
Lionel Pöffel 2021 年 10 月 26 日
移動済み: Walter Roberson 2023 年 6 月 28 日
Seems to work great, thanks!

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by