Waitbar reappear after openning a GUI

In guiframe_OpeningFcn of my GUI, a function is called to process some data. It takes a little while so I added a simple waitbar in the function. The problem is that the waitbar reapears after the GUI is open. I have tried delete() or close(), but none of them works, the waitbar is closed when the function is finished, but it keeps popping up again after the GUI is open. Is there a way to solve this problem?

2 件のコメント

Greg
Greg 2018 年 3 月 18 日
Share your code for the OpeningFcn so we can see.
It's possible that you saved the waitbar into the .fig file (you can save multiple figures into the same .fig file, and they all reopen at load time).
Chi Zhang
Chi Zhang 2018 年 3 月 18 日
Thanks for the hint. Probelem solved, it turns out in the openningfcn I tried to load the data saved by that function I called and the data contained the waitbar figure, so the waitbar popped up again.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

製品

タグ

質問済み:

2018 年 3 月 17 日

コメント済み:

2018 年 3 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by