How can I get which tab is selected?
조회 수: 8 (최근 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에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!