How can I get which tab is selected?
14 ビュー (過去 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
0 件のコメント
回答 (1 件)
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)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!