필터 지우기
필터 지우기

how to close uipanel base on click on pushbutton

조회 수: 5 (최근 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 CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by