フィルターのクリア

Rearrange order of tabs in App Designer

24 ビュー (過去 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 Center および File ExchangeDevelop 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