create main panel and create sub panel on main panel. in subpanel one close button. when we press close button than main panel and subpanel go closed.
1 次查看(过去 30 天)
显示 更早的评论
create main panel and create sub panel on main panel. in subpanel one close button. when we press close button than main panel and subpanel go closed.
i have enclosed GUI IMAGE
回答(1 个)
Walter Roberson
2017-9-18
outer = uipanel()
inner = uipanel('Parent', outer)
but = uicontrol('style', 'push', 'Callback', @(src, event) delete(outer) )
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!