Rearrange order of tabs in App Designer

10 visualizaciones (últimos 30 días)
Tk
Tk el 13 de Mayo de 2019
Respondida: Syed Hussain el 3 de En. de 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?

Respuestas (1)

Syed Hussain
Syed Hussain el 3 de En. de 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

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by