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

Antworten (1)

Sean de Wolski
Sean de Wolski am 9 Jul. 2015
Bearbeitet: Sean de Wolski am 9 Jul. 2015

2 Stimmen

tg = uitabgroup;
tabs = gobjects(3,1);
for ii = 1:3;
tabs(ii) = uitab('Parent',tg);
end
% Select a tab
tabNumber = find(tg.SelectedTab == tabs)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Gefragt:

am 9 Jul. 2015

Bearbeitet:

am 9 Jul. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by