App designer file path as tabs

조회 수: 1 (최근 30일)
Jan
Jan 2022년 9월 12일
댓글: Mario Malic 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