Effacer les filtres
Effacer les filtres

How can I implement a reset button in a GUI code?

7 vues (au cours des 30 derniers jours)
Anthony
Anthony le 7 Juil 2015
Commenté : Sid le 7 Juil 2015
Ok, so I wrote a GUI that runs my program when I click a push button called Run Program. My question is how can I implement a Reset push button to bring the user back to before the Run program button was pushed but still keep all other variables in the GUI window from resetting to no value? If anyone could help that would be great!!

Réponse acceptée

Sid
Sid le 7 Juil 2015
Anthony, can you have a look at Doug Hull's tutorial on a similar question? You can find it here .
  1 commentaire
Sid
Sid le 7 Juil 2015
In a nutshell, set up the callback function for the pushbutton to be saveState instead of it being for the figure CloseRequestFcn .

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks 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