Is there a way to hide a specific uitab ?
19 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am working with uitabgroup and uitabs?
I would like to be able to hide or delete a uitab.
Does any one have a solution to this problem.
Thank you very much
0 件のコメント
採用された回答
Adam
2015 年 10 月 30 日
編集済み: Adam
2015 年 10 月 30 日
You can reparent the tab to empty as e.g.
f = figure;
tabgp = uitabgroup(f,'Position',[.05 .05 .3 .8]);
tab1 = uitab(tabgp,'Title','Type of Signal');
tab2 = uitab(tabgp,'Title','Plot Options');
tab1.Parent = [];
then
tab1.Parent = tabgp;
to bring it back again.
The problem is that the tab returns in a different order to previously since what was the 2nd tab originally became the first (and only in this example) tab when you reparent the first one, so when you bring the first one back it adds it to the end.
You can fix this though by permuting the
tabgp.Children
back to the same order you originally had.
I just tried inserting the tab directly into the 'Children' array but it does not allow you to do that so this is the only solution I can think of off the top of my head.
その他の回答 (3 件)
Jason Kulpe
2020 年 8 月 13 日
This is simlar to Jorge's answer on https://www.mathworks.com/matlabcentral/answers/355804-app-designer-tab-groups. I think this is a cleaner solution.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!