Refreshing app GUI during longer actions

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?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Oct. de 2021
Movida: Walter Roberson el 28 de Jun. de 2023

0 votos

Did you try drawnow()?

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Preguntada:

el 26 de Oct. de 2021

Movida:

el 28 de Jun. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by