Coloring tab in AppDesigner (and getting this Ask a Question to Work in Edge!)
6 ビュー (過去 30 日間)
古いコメントを表示
Hi Folks,
A normal expectation for most developers is that the tab background color behind the text string that defines the tab in AppDesigner matches the background color of the entire tab. However, in 2022b, the only version my company supports, I cannot find a solution that colors the tabs to what I want them to be. They are always gray. Is there a solution? Recall that when you were studying at a university, you colored your tabs in your physical filing cabinets to help organize. It worked very well.
Oh, and any fix for how to get this form to function in Edge? It seems this site's programming has excluded Edge testing, as I always cannot get it to work in Edge, like there is some sort of boycot of Microsoft from Mathworks.
Thank you,
Kris
1 件のコメント
dpb
2025 年 8 月 13 日
While I detest using it, this was posted with Edge and the forum seems to work...but I am still using Win10, not 11.
採用された回答
dpb
2025 年 8 月 13 日
編集済み: dpb
2025 年 8 月 13 日
The only color properties exposed are, as you've already discovered, ForegroundColor and BackgroundColor, the latter applies only to the entire tab area, not the tab handle area while the former is, in essence, the FontColor for the tab string with which one could color code the tabs, but there is no property (hidden or exposed) for the tab background color itself.
This would be suitable for an enhancement request.
While I've not experimented to see about trying to do so, the only way I can see to get the apparent visual effect desired would be to draw a patch over the area of the tab -- a non trvial piece of work to figure out the position coordinates and resize callbacks, etc., ...
I would agree it seems a farily large hole in the implementation although not being much of a gui-driven user, I've never used a tab group in anger...
2 件のコメント
dpb
2025 年 8 月 13 日
Just to add, upgrading won't help here; the current documentation shows no additional uitab properties
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!