RESET GUI
6 次查看(过去 30 天)
显示 更早的评论
Hi All
I want to Reset my GUI AS a whole , with one pushbutton RESET ! Is this Possible??
Thanks
0 个评论
采纳的回答
Walter Roberson
2011-12-14
set(findobj('style','pushbutton'), 'Value', 0);
set(findobj('style','edit'), 'String', {''});
set(findobj('style','text'), 'String', {''});
set(findobj('style','listbox'), 'String', {''}, 'Min', 0, 'Max', 1, 'Value', 1, 'ListBoxTop', 1);
delete(findobj('type','line','-or','type','patch','-or','type','barseries','-or','type','surface');
and so on.
更多回答(1 个)
Jan
2011-12-14
Yes, it is possible. You just need a suiting callback function for the button. Without knowing any details, it is impossible to create a more detailed answer.
One of the many solutions is to let the callback close the figure and open a new one.
6 个评论
Walter Roberson
2011-12-14
Warning: popupmenu control requires a non-empty String
Control will not be rendered until all of its parameter values are valid
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!