Rearrange order of tabs in App Designer

9 Ansichten (letzte 30 Tage)
Tk
Tk am 13 Mai 2019
Beantwortet: Syed Hussain am 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?

Antworten (1)

Syed Hussain
Syed Hussain am 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

Kategorien

Mehr zu Develop Apps Using App Designer 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