필터 지우기
필터 지우기

Rearrange order of tabs in App Designer

조회 수: 13 (최근 30일)
Tk
Tk 2019년 5월 13일
답변: Syed Hussain 2021년 1월 3일
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?

답변 (1개)

Syed Hussain
Syed Hussain 2021년 1월 3일
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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by