Reset button
Show older comments
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 ?
Accepted Answer
More Answers (2)
Paulo Silva
on 13 Dec 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 Comments
Maryam Emad
on 13 Dec 2011
Maryam Emad
on 13 Dec 2011
Walter Roberson
on 13 Dec 2011
set(findobj(handles.figure1,'style','edit', '-or', 'style','popupmenu'),'string','')
Maryam Emad
on 13 Dec 2011
Categories
Find more on Desktop in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!