how to close uipanel base on click on pushbutton
조회 수: 5 (최근 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에서 Interactive Control and Callbacks에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!