Dialogs do not close

조회 수: 4 (최근 30일)
Stefan
Stefan 2011년 10월 14일
I use the inputdlg and questdlg for user feedback. My problem is that the dialogs do not close when a button is pressed.
My current solution is to do a pause(1), this will update the dialog and close it. I would like a solution, that does not last a second...
Another problem is that button with focus is not activated by pressing enter. Any thoughts on this?
I use MatLab 7.11.0.584 (R2010b) on Vista Home premium 32

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 10월 14일
I had the same problem. My experience is that the dialog won't close if there is intense calculation/operation right after the user feedback.
You can try to use drawnow() to replace pause(). I found it didn't work as well as pause(). In my situation, pause(0.2) is sufficient enough.
  댓글 수: 1
Stefan
Stefan 2011년 10월 14일
thanks for your response. I will try shorter pauses.

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

추가 답변 (1개)

Jim
Jim 2012년 9월 20일
I also ran into this. pause(.1) worked for me.

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by