How can I generate custom tabs for tabgroups in app designer?

1 回表示 (過去 30 日間)
Matthias Hoffmann
Matthias Hoffmann 2021 年 8 月 10 日
回答済み: Matthias Hoffmann 2021 年 8 月 12 日
Hi,
I want to build up a tabgroup of three custom tabs, that I add programmatically. By pressing a Button one of those three tabs is added. Is there a faster and cleaner way, other than building three custom components? From my research, I found that Matlab prohibits inheritance from uitab.
Can I maybe save these tabs or at least the elements inside each group to load them quickly?
Thanks in advance!

採用された回答

Matthias Hoffmann
Matthias Hoffmann 2021 年 8 月 12 日
So it is a bit fiddled, but I create a second tabgroup with visibility turned off that contains my three custom tabs. From there I use copyobj(app.tabGroup_2.Children(...), app.tabGroup) to copy the correct one over to my visible tabgroup.
If anyone has a cleaner idea I would love to hear it!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by