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 Center および File ExchangeApp Building についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by