Effacer les filtres
Effacer les filtres

Refreshing app GUI during longer actions

57 vues (au cours des 30 derniers jours)
Lionel Pöffel
Lionel Pöffel le 26 Oct 2021
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?

Réponse acceptée

Walter Roberson
Walter Roberson le 26 Oct 2021
Déplacé(e) : Walter Roberson le 28 Juin 2023
Did you try drawnow()?
  1 commentaire
Lionel Pöffel
Lionel Pöffel le 26 Oct 2021
Déplacé(e) : Walter Roberson le 28 Juin 2023
Seems to work great, thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by