Change the uitabgroup's tab color or font color?

조회 수: 13 (최근 30일)
Song
Song 2015년 4월 1일
댓글: Adam H 2023년 3월 27일
Is it possible to change the uitabgroup's tab color or font color? e.g. I set the background color of uitabgroup to dark, so it would be better to set the color of tabs also to dark than the default light gray color.
Thanks
  댓글 수: 1
Dynamite Schanes
Dynamite Schanes 2017년 9월 26일
I'm looking for the same thing. I'll let you know if I find anything!!!1!

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

답변 (2개)

Walter Roberson
Walter Roberson 2017년 9월 26일
h = uitabgroup();
set(h, 'defaultUitabForegroundColor', [.2 .3 .4])
t1 = uitab(h, 'Title', 'Test 1');
get(t1, 'ForegroundColor')
Setting the font color is more difficult, and I have to ask "font for what, exactly" ?
  댓글 수: 11
Eric Delgado
Eric Delgado 2021년 12월 24일
Why not put a panel with buttons in front of the tab control?!? The buttons callbacks emulate the tab selection. An app designed in Matlab doesn't need to be ugly! :)
Adam H
Adam H 2023년 3월 27일
R2022b, same issue still.

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


George Baltas
George Baltas 2018년 10월 12일
Had the same problem. I am trying this for couple days now, almost thought about re-writing the whole GUI programmatically just to make my tabs behave the way I want. I hope next Matlab version will include this

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by