How can I get which tab is selected?
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello All! I have three tab, and want to change data by clicking these tabs, so I need to know how find which tab is selected by user. Any idea would be a great job for me. Thanks in advance
0 commentaires
Réponses (1)
Sean de Wolski
le 9 Juil 2015
Modifié(e) : Sean de Wolski
le 9 Juil 2015
tg = uitabgroup;
tabs = gobjects(3,1);
for ii = 1:3;
tabs(ii) = uitab('Parent',tg);
end
% Select a tab
tabNumber = find(tg.SelectedTab == tabs)
0 commentaires
Voir également
Catégories
En savoir plus sur Graphics Object Programming 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!