Can I hide a tab in MATLAB App Designer?
97 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I created a GUI with multiple tabs in a TabGroup, and would like to use flags/buttons to control the visibility of tabs, so I have different tabs for different configs.
But I found that you can only hide the whole TabGroup, you cannot hide a tab inside because there is no 'Visible' option.
Is there a way to achieve this or I have to use other GUI such as Python? Thanks!
Anna
0 commentaires
Réponse acceptée
Anna Zeng
le 17 Oct 2019
2 commentaires
yumeng Jiang
le 30 Oct 2019
i cant find relevant code online,i dont know what code i should add to the .m file. i m new to this appdesigner ,i really need to solve this problem, please help me ,im greatly appreciated.
Plus de réponses (5)
yumeng Jiang
le 30 Oct 2019
您好 不知道您能否看懂中文 我是想问一下 如何能够将上面的那一栏隐藏掉,我想实现在一个窗口内有多个界面可以进行切换。我最初想用多个panel分别设置visible但是失败了,因为会发生重叠后包含的父子关系,这个问题还没有解决。于是我想用这个Tabgroup来实现 我是不希望在我的界面中看到上面那一栏的, 不知道您有什么办法么???
yumeng Jiang
le 30 Oct 2019
i want to hide the top line(title line) of tabgroup , could u tell more details about your solution?? can i contact with you on wechat or q if possible???thank you !!!!!
yumeng Jiang
le 30 Oct 2019
i want to hide the part in red circle,or do you know how to creat several panels overlapping but without inclusion relationship。
Adam Danz
le 19 Juin 2020
As of r2020a, there isn't an option to control the visibility or enable-property of individual tabs.
However, you can apply this demo to your app to control which tabs can be selected under different conditions. The demo prevents certain tabs from being selected according to the values of a set of checkboxes.
Demo:
Voir également
Catégories
En savoir plus sur Create Custom UI Components dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!