Guidance on Closing a "GUIDE" Gui
Ältere Kommentare anzeigen
Hello!
I have been trying to cleanly exit a GUIDE gui, and am a bit confused as to the proper sequence. The OpeningFcn is straighforward, but I don't know about a couple of things:
- If you have to close the gui right away (like a security check put in the OpeningFcn isn't met), how do you exit? return()? or call the close function? The close has a modal dialog to see if you want to close, but we don't want to do that if security doesn't pass.
- What is the proper sequence to (a) close any open windows that have been created during the session and (b) if you have called uiwait, when do you do the delete(handles.figure1) and the uiresume(handles.figure1)? Or other proper close functions?
Thanks.
Doug
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!