How can I get which tab is selected?

13 visualizaciones (últimos 30 días)
Giorgi
Giorgi el 9 de Jul. de 2015
Editada: Sean de Wolski el 9 de Jul. de 2015
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

Respuestas (1)

Sean de Wolski
Sean de Wolski el 9 de Jul. de 2015
Editada: Sean de Wolski el 9 de Jul. de 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)

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by