How to change focused Tab on AppDesigner?

43 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 5 Déc 2019
How to change focused Tab on AppDesigner?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 9 Août 2022
Modifié(e) : MathWorks Support Team le 9 Août 2022
For instance, if there are two Tabs on TabGroup, you can capture the Handle for the second Tab by following.
>> h = app.TabGroup.Children(2);
You can then directly assign it to SelectedTab property.\n\n
>> app.TabGroup.SelectedTab = h;
An example app (saved in R2021a) which implements this feature without explicitly specifying the next tab, can be found in the attachments.

Plus de réponses (0)

Catégories

En savoir plus sur Live Scripts and Functions dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by