how to programmatically close modal figure?

3 vues (au cours des 30 derniers jours)
Shreeprasad Bhat
Shreeprasad Bhat le 18 Avr 2017
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.

Réponse acceptée

Shreeprasad Bhat
Shreeprasad Bhat le 22 Avr 2017
Modifié(e) : Shreeprasad Bhat le 22 Avr 2017
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);

Plus de réponses (0)

Catégories

En savoir plus sur Dialog Boxes dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by