필터 지우기
필터 지우기

GUI "saving' indicator that doesn't affect figure

조회 수: 2 (최근 30일)
DrewVam55
DrewVam55 2016년 12월 5일
댓글: DrewVam55 2016년 12월 6일
I am making a GUI that serves as a tool for researchers in parsing/visualizing data. The work that they do within the GUI needs to be saved at the end of their session. To do this, I am saving the figure that the GUI exists within ( savefig() ). I'd like to create a save indicator, as there are rather large data sets that take significant time to save. However, anything I have tried involves changing the current figure (i.e. set(gcf, 'pointer', 'watch') or changing the text of the save button to "saving..." prior to the execution of the savefig() call) meaning that the watch pointer is stuck on when the saved figure is opened, or the saved figure has a pushbutton labelled "saving...".
Does anyone have any suggestions for how to better approach this? I realize the more elegant way would be to implement a save feature that just saves the data and then a load feature which imports and loads the data, but I am trying to avoid this for other reasons.

채택된 답변

David Barry
David Barry 2016년 12월 5일
If you want to display progress then take a look at creating a waitbar. Alternatively you could always create a new figure on top of the one you are saving to display some form of busy status text/icon.
  댓글 수: 1
DrewVam55
DrewVam55 2016년 12월 6일
Not the best as I can't have the waitbar move at all during the save, but it at least lets the user know that it the program is busy saving something. Just going to open it at 0.5 before saving then right after change the message to 'complete' and 1.0.
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by