How to save result of GUI before closing?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone, I want to know if there is any option that can be added to GUI so that if the user accidentally close GUI bring a message like "Do you want to close the GUI?" with Yes and No answer and if it was yes, information be saved.
0 comentarios
Respuestas (1)
Walter Roberson
el 9 de Ag. de 2018
See https://www.mathworks.com/help/matlab/ref/matlab.ui.figure-properties.html#buiwuyk-1-CloseRequestFcn for an example of prompting the user .
To save the information, you can save() or xlswrite() or whatever is appropriate for the way you want to store the information.
0 comentarios
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!