Coloring tab in AppDesigner (and getting this Ask a Question to Work in Edge!)
6 views (last 30 days)
Show older comments
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 Comment
dpb
on 13 Aug 2025
While I detest using it, this was posted with Edge and the forum seems to work...but I am still using Win10, not 11.
Accepted Answer
dpb
on 13 Aug 2025
Edited: dpb
on 13 Aug 2025
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 Comments
dpb
on 13 Aug 2025
Just to add, upgrading won't help here; the current documentation shows no additional uitab properties
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!