how to close uipanel base on click on pushbutton
1 次查看(过去 30 天)
显示 更早的评论
how to close uipanel base on click on pushbutton
a6=uicontrol('parent', handles.hsp,'Style','pushbutton','FontSize',11,'FontWeight','bold', ...
'position',[5 20 60 20],'string','close','Callback',@mycloseFunction);
0 个评论
采纳的回答
Walter Roberson
2017-9-18
outer = uipanel()
inner = uipanel('Parent', outer)
but = uicontrol('style', 'push', 'Callback', @(src, event) delete(outer) )
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!