How can I get which tab is selected?

조회 수: 8 (최근 30일)
Giorgi
Giorgi 2015년 7월 9일
편집: Sean de Wolski 2015년 7월 9일
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에서 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!

Translated by