how do I trigger the _OutputFcn output assignments and figure delete when I use a button to close a GUIDE GUI
Mostra commenti meno recenti
Hello, I have a GUIDE GUI and I am trying to make an abort button which closes the GUI nicely and passes output variables to the functions that called the GUI.
I have seen people use delete(handles.figure1) to finish the GUI, but this does not seem to trigger the assignment of output variables (eg: varargout{1} = x does not happen).
I would really like my Abort button to trigger the execution of FunctionName_OutputFcn(...). If I try calling the output function from my abort button callback using "varargout = functionName_OutputFcn(hObject, eventdata, handles);", the callback, the figure closes and then opens again.
Anyone have any ideas?
Thanks, Ben
Risposte (2)
Ben Ruppel
il 30 Mar 2012
0 voti
Sean de Wolski
il 30 Mar 2012
0 voti
You could uiresume() in the figure's deletefcn or closerequestfcn.
Categorie
Scopri di più su Interactive Control and Callbacks in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!