App designer file path as tabs

1 次查看(过去 30 天)
Jan
Jan 2022-9-12
Hi, i would like to design an app where the path and subfolders become the tabs in the app.
The plan is that if a have a folder on my desktop called files and in that folder is a folder called subfolder.
I want to choose desktop as the destination where files are and in the app there should be tabs with desktop, files and subfolder as tabs to click on and see the files from the folder.
My idea was to use the command dir('**/*.*') to get all of the files and ask with isdir if there are any subfolders. And this works so fafr.
But how can i design the path tabs dynamic? That there is a single tab for each subfolder
  1 个评论
Mario Malic
Mario Malic 2022-9-12
Definitely possible, but this would make the app complicated and not clear. I guess you would have to write a SelectionChangedFcn callback that creates a TabGroup inside the selected uitab object.
I would suggest you rather to do this with uitree group, you can expand/collapse, and have the overlook on the whole directory instead of checking the contents of one folder.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by