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
Walter Roberson 2017-9-18
outer = uipanel()
inner = uipanel('Parent', outer)
but = uicontrol('style', 'push', 'Callback', @(src, event) delete(outer) )

类别

Help CenterFile Exchange 中查找有关 App Building 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by