how to programmatically close modal figure?

조회 수: 4 (최근 30일)
Shreeprasad Bhat
Shreeprasad Bhat 2017년 4월 18일
편집: Shreeprasad Bhat 2017년 4월 22일
Hello,
I have set WindowStyle as modal for waitbar since I wan't to disable the main figure untill the waitbar is Finished. But I am unable to close waitbar, matlab hangs. How can I programmatically close the modal figure?
Thank you.

채택된 답변

Shreeprasad Bhat
Shreeprasad Bhat 2017년 4월 22일
편집: Shreeprasad Bhat 2017년 4월 22일
I found the solution.
Just before closing figure, set the window style to normal.
h=waitbar(0,'Please wait...','WindowStyle','modal');
.
.
.
set(h,'WindowStyle','normal');
close(h);

추가 답변 (0개)

카테고리

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