uitable - how to change the font name for headings

Hi everyone,
I am using "uitable" to show the final output in a table format. I can change all settings for the cells (fonts, colors, etc.) using uitable properties but I couldn't figure out how to change the settings for the headings. More specifically, I wanted to change the font for rows' headings but I couldn't. I used the following command
row_heading{i} = ['<html><br><font face="Comic Sans MS">' sprintf('%c',rnames{i}) '</font></br></html>'];
It worked, but the names occupies the whole table. I mean the cells are not visible anymore. Any suggestion would be highly appreciated.
Thanks, Iman

Réponses (2)

Steven Hall
Steven Hall le 8 Mai 2014

0 votes

Same here, this is actually what brought me into the forum.
Am I correct in thinking that this did not solve your issues either: http://www.mathworks.com/help/matlab/ref/uitable.html
If someone can offer a solution/work round, very grateful to folks.
cheers
Lawrence
Lawrence le 18 Août 2022
Modifié(e) : Lawrence le 19 Août 2022

0 votes

You can add a size attribute to the font tag: <font face="Comic Sans MS" size=5>
Alternatively, you can add a font-size style to the font tag: <font face="Comic Sans MS" style="font-size: 25px;">

Catégories

En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange

Produits

Tags

Question posée :

le 2 Jan 2014

Modifié(e) :

le 19 Août 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by