How can I create a collapsible uiPanel in Matlab?
조회 수: 37 (최근 30일)
이전 댓글 표시
Is there any way of creating collapsible uiPanels in Matlab? As in, panels that open and close by pushing a button? See the example below.
Thank you!
댓글 수: 0
채택된 답변
Adam
2016년 12월 12일
http://uk.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox (R2014b or later) http://uk.mathworks.com/matlabcentral/fileexchange/27758-gui-layout-toolbox (R2014a or earlier)
contains a BoxPanel class that allows you to program in this functionality. There is documentation in a folder of that submission which includes this. As always I would recommend trying it in a simple standalone demo before trying to insert it straight into your main code, to ensure you understand how it works.
추가 답변 (1개)
Walter Roberson
2016년 12월 12일
You could create a uipanel with a toggle button inside it. The callback for the toggle button could resize the uipanel. With clipping set on the uipanel that could be used to hide the content. You could use a CData property on the toggle button to make it look like a triangle.
댓글 수: 2
Walter Roberson
2016년 12월 12일
Don't put it inside the title then. Is the functionality the important part or is the graphic design the important part?
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!