Effacer les filtres
Effacer les filtres

A cancel button, to do nothing

2 vues (au cours des 30 derniers jours)
Praveen Choudhury
Praveen Choudhury le 18 Déc 2015
Commenté : Image Analyst le 18 Déc 2015
I have a gui(called main) through which I open another gui(called config). When I press ok button in the config gui, it performs and operation and the result is updated on the main gui. I want to add a cancel button in my config gui, so that when I press cancel, it should do nothing at all and close the gui.

Réponse acceptée

Image Analyst
Image Analyst le 18 Déc 2015
In the call back for that button, just delete the variable that is the handle to the gui and it will vanish.
  3 commentaires
Praveen Choudhury
Praveen Choudhury le 18 Déc 2015
It closes the gui and does nothing but I get an error in the command window.
Attempt to reference field of non-structure array.
Error in config_window>config_window_OutputFcn (line 90)
varargout{1} = handles.output;
Image Analyst
Image Analyst le 18 Déc 2015
You never assigned that variable. But you don't need it. Just delete the line.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Parallel for-Loops (parfor) 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