Reset button
Mostra commenti meno recenti
Welcome All...
I have GUI with multiple Edit( To Get User Input ).
I wish to ADD Reset Pushbutton in order to clear All input.
How I can do it ?
Risposta accettata
Più risposte (2)
Paulo Silva
il 13 Dic 2011
set(findobj(0,'style','edit'),'string','') %put this in the button callback
%that should clear all edit uicontrols
or
set(findobj(handles.figure1,'style','edit'),'string','')
%should only clear the edit uicontrols from the current GUI
3 Commenti
Maryam Emad
il 13 Dic 2011
Maryam Emad
il 13 Dic 2011
Walter Roberson
il 13 Dic 2011
set(findobj(handles.figure1,'style','edit', '-or', 'style','popupmenu'),'string','')
Maryam Emad
il 13 Dic 2011
Categorie
Scopri di più su Desktop 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!