how to close uipanel base on click on pushbutton

1 回表示 (過去 30 日間)
praveen chandaliya
praveen chandaliya 2017 年 9 月 17 日
コメント済み: praveen chandaliya 2017 年 9 月 18 日
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);

採用された回答

Walter Roberson
Walter Roberson 2017 年 9 月 18 日
outer = uipanel()
inner = uipanel('Parent', outer)
but = uicontrol('style', 'push', 'Callback', @(src, event) delete(outer) )
  1 件のコメント
praveen chandaliya
praveen chandaliya 2017 年 9 月 18 日
Thanks Walter this code working properly... if any one required to close figure than also close using this way only pass delete(hFig)..

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by