how i can known the active tab in a tabgroup component in the appdessigner tool?

조회 수: 38 (최근 30일)
is posible known the active tab in a tabgroup component?, i try as app.nameTabGroup.Selectedtab but is not work :
For example i need know if the volume tab is active, could you help me please?

채택된 답변

Sean de Wolski
Sean de Wolski 2020년 4월 22일
What do you mean this "doesn't work"?
app.nameTabGroup.Selectedtab
Is the right way to do this so somewhere your logic or code probably has a bug in it. Put a break point in, and see what it's telling you.
  댓글 수: 3
Sean de Wolski
Sean de Wolski 2020년 4월 23일
Hi Harold,
Yes that would be how to get the Title! If you wanted the tab value, you could compare it to the tab list.
Louis Bodnar
Louis Bodnar 2022년 6월 13일
He's right... app.nameTabGroup.Selectedtab gives an error, the correct syntax is: app.TabGroup.SelectedTab

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

aliko dakil
aliko dakil 2020년 4월 22일
do you know how to change the color to 'pure' white if the tab is not selected. IT's showing white but the actual color is somewhat disabled.
  댓글 수: 1
Harold Alexander Medina Santacruz
yes, i know how to change the tab color but ¿ is not exist a direct form to consult the tab activity?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by