필터 지우기
필터 지우기

Refreshing app GUI during longer actions

조회 수: 57 (최근 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 CenterFile Exchange에서 Develop 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