How to set color in a uitable column
Ältere Kommentare anzeigen
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.
Antworten (1)
Walter Roberson
am 29 Jul. 2011
0 Stimmen
1 Kommentar
Jan
am 29 Jul. 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.
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!