How to save result of GUI before closing?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Walter Roberson
le 9 Août 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 commentaires
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps 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!