how i can known the active tab in a tabgroup component in the appdessigner tool?

38 vues (au cours des 30 derniers jours)
is posible known the active tab in a tabgroup component?, i try as app.nameTabGroup.Selectedtab but is not work :
For example i need know if the volume tab is active, could you help me please?

Réponse acceptée

Sean de Wolski
Sean de Wolski le 22 Avr 2020
What do you mean this "doesn't work"?
app.nameTabGroup.Selectedtab
Is the right way to do this so somewhere your logic or code probably has a bug in it. Put a break point in, and see what it's telling you.
  3 commentaires
Sean de Wolski
Sean de Wolski le 23 Avr 2020
Hi Harold,
Yes that would be how to get the Title! If you wanted the tab value, you could compare it to the tab list.
Louis Bodnar
Louis Bodnar le 13 Juin 2022
He's right... app.nameTabGroup.Selectedtab gives an error, the correct syntax is: app.TabGroup.SelectedTab

Connectez-vous pour commenter.

Plus de réponses (1)

aliko dakil
aliko dakil le 22 Avr 2020
do you know how to change the color to 'pure' white if the tab is not selected. IT's showing white but the actual color is somewhat disabled.
  1 commentaire
Harold Alexander Medina Santacruz
yes, i know how to change the tab color but ¿ is not exist a direct form to consult the tab activity?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Large Files and Big Data dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by