options for layout gui

6 ビュー (過去 30 日間)
Maximilian Dio
Maximilian Dio 2018 年 9 月 21 日
回答済み: Fabian Giebeler 2019 年 1 月 15 日
Hi there,
I am searching for possible options to layout a GUI. I just found uitab and uipanel. Is there a way to create a tree structure like in win explorer for folders: show and display the content in a folder. In my case just for some content.
thanks for your Help!
cheers Max

回答 (3 件)

Walter Roberson
Walter Roberson 2018 年 9 月 21 日
Historically there was also the undocumented uitree for regular figures; https://undocumentedmatlab.com/blog/uitree . That does not work now; I do not know when it was removed in that form. You might also be interested in https://undocumentedmatlab.com/blog/treetable -- I do not know if that would work in modern versions.

Yair Altman
Yair Altman 2018 年 9 月 21 日
Hi Walter - I'm not sure why you say that https://undocumentedmatlab.com/blog/uitree no longer works - it works perfectly fine for me even on R2018b (as well as any older Matlab release of the past 15 years or so):
[mtree, container] = uitree('v0', 'Root','C:\');
Yair Altman
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 21 日
>> uitree(gcf)
Error using uitree (line 64)
Functionality not supported with figures created with the figure function. For more information, see Graphics Support in App Designer.
In its default mode, it needs a uifigure instead of a traditional figure, but historically uitree() worked with traditional figures. In terms of what you have documented, the 'v0' flag has now become mandatory for use with traditional figures, such as
uitree('v0', 'Parent',gcf)

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


Fabian Giebeler
Fabian Giebeler 2019 年 1 月 15 日
Hello,
i want to integrate the folderstructure form uitree into an appdesigner app.
Do someone know the procedure for this?
Many Thanks!

カテゴリ

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