Rearrange order of tabs in App Designer

14 views (last 30 days)
Tk
Tk on 13 May 2019
Answered: Syed Hussain on 3 Jan 2021
Hey,
i am creating a GUI with appdesigner and wanted to change the order of my tabs in a tab group. This can apparently done by drag and drop clicking on the tab name.
But it seems to be behave oddly. The dragged tab either doesnt move at all or always shows up at the last position of the tab group.
Is this the intended behaviour or am I simply to stupid to use it?

Answers (1)

Syed Hussain
Syed Hussain on 3 Jan 2021
Hi
You can use the uitab.Children property
Let say you have 3 tabs
tab1 tab2 tab3
you would like to arrange it as follows
tab2 tab3 tab1
you can use the following
tabs = app.Maintab.Children;
modified_tabs = [tabs(2);tabs(3);tabs(1)];
app.Maintab.Children = modified_tabs;
Hope this helps

Categories

Find more on Develop Apps Using App Designer 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!