How can I get which tab is selected?

11 次查看(过去 30 天)
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

回答(1 个)

Sean de Wolski
Sean de Wolski 2015-7-9
编辑:Sean de Wolski 2015-7-9
tg = uitabgroup;
tabs = gobjects(3,1);
for ii = 1:3;
tabs(ii) = uitab('Parent',tg);
end
% Select a tab
tabNumber = find(tg.SelectedTab == tabs)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by