Reset button
显示 更早的评论
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 ?
采纳的回答
更多回答(2 个)
Paulo Silva
2011-12-13
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 个评论
Maryam Emad
2011-12-13
Maryam Emad
2011-12-13
Walter Roberson
2011-12-13
set(findobj(handles.figure1,'style','edit', '-or', 'style','popupmenu'),'string','')
类别
在 帮助中心 和 File Exchange 中查找有关 Desktop 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!