How can I create a collapsible uiPanel in Matlab?

25 ビュー (過去 30 日間)
Neta Stern
Neta Stern 2016 年 12 月 12 日
コメント済み: Neta Stern 2017 年 1 月 23 日
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!

採用された回答

Adam
Adam 2016 年 12 月 12 日
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 件のコメント
Neta Stern
Neta Stern 2017 年 1 月 23 日
Thank you! :)

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

その他の回答 (1 件)

Walter Roberson
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 件のコメント
Neta Stern
Neta Stern 2016 年 12 月 12 日
Thank you for your answer! but how can I get the toggle button inside the title? As far as i can see, the title only accepts a string.
Walter Roberson
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 ExchangeMigrate GUIDE Apps についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by