Change the uitabgroup's tab color or font color?
조회 수: 13 (최근 30일)
이전 댓글 표시
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
2017년 9월 26일
I'm looking for the same thing. I'll let you know if I find anything!!!1!
답변 (2개)
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
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! :)

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
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!