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

1 view (last 30 days)
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!

Accepted Answer

Matthias Hoffmann
Matthias Hoffmann on 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!

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!