App designer file path as tabs
1 回表示 (過去 30 日間)
古いコメントを表示
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
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 Center および File Exchange で Downloads についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!