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

1 Ansicht (letzte 30 Tage)
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!

Akzeptierte Antwort

Matthias Hoffmann
Matthias Hoffmann am 12 Aug. 2021
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!

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by