How to set color in a uitable column
Afficher commentaires plus anciens
Hello,
I work with MATLAB GUIDE. (I have set in GUI options "Generate fig file only"). I use many tables in my fig and I would like to put a column in some tables in a different color. I've found how to change the color of all the table an rows but not for only one column. There is a way to color columns without using Java?
Thank you in advance.
Réponses (1)
Walter Roberson
le 29 Juil 2011
0 votes
1 commentaire
Jan
le 29 Juil 2011
This is not really sufficient, because it handles string data only. In addition the ugly HTML tags appear, when you select a table cell. You can insert a removing of these tags in the CellSelectionCallback, but changing the data deselects all currently selected objects - which calls the CellSelectionCallback recursively.
UITABLE and UITREE are important powerful user interface tools. Unfortunately they are not supported sufficiently by MATLAB. I hope, that this will be improved drastically in release 8.
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!