Tabs in Tab (delete Main tab)
2 次查看(过去 30 天)
显示 更早的评论
I am encountering a problem using Tabs.
I have a Tab (TAB2) that contains other objects. One of these objects is a uitabgroup (tabgp2).
If I save TAB2 (savetab=TAB2) and then delete it (TAB2.PARENT=[]), If I put back the TAB2 (TAB@.PARENT=savetab) to display TAB2 again, then all the objects are back except the uitabgroup (tabgp2).
Here is the code:
a=figure(1);
tabgp = uitabgroup(a);
tab1 = uitab(tabgp,'Title','Type of Signal');
tab2 = uitab(tabgp,'Title','Plot Options');
tabgp2 = uitabgroup(tab2);
subtab1 = uitab(tabgp2,'Title','Tab1');
subtab2 = uitab(tabgp2,'Title','Tab2');
subtab3 = uitab(tabgp2,'Title','Tab3');
savetab=tab2.Parent;
end
Then after running this code. I do the following to delete the TAB2 :
tab2.Parent=[];
and then, if I do :
tab2.Parent=savetab;
Everything will come back except tabgp2.
I would expect to get everything back, like I usually do with tabs that do not have other Tabs group inside them. The subtab objects are still accessible but not visible eventhough their 'visible' property is set to 'on'.
Is it a Matlab bug or am I doing something wrong ?
Best Regards, Marc
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!