Matlab uitable column font size using html not working
古いコメントを表示
I have a uitable within a uipanel.
I'm trying to change the column header font size using following HTML code:
'ColumnName',{'<HTML><FONT size=10>Metric</FONT></HTML>','<HTML><FONT size=10>Value</FONT></HTML>'}
I get:

I've tried changing the HMTL code to:
'ColumnName',{'<HTML><FONT size="10">Metric</FONT></HTML>','<HTML><FONT size="10">Value</FONT></HTML>'}
'ColumnName',{'<HTML><FONT size="+10">Metric</FONT></HTML>','<HTML><FONT size="+10">Value</FONT></HTML>'}
Nothing works, keep getting the contents of the cell as the text in the column headers.
What am I doing wrong?
Mathworks, uitable needs to have native support to change font sizes for column and row names, this html solution is too janky!!
Thanks,
Alex.
3 件のコメント
Guillaume
2019 年 7 月 8 日
Is there any documentation that says that html is supposed to be interpreted in a uitable?
Alexandru Bitca
2019 年 7 月 8 日
採用された回答
その他の回答 (2 件)
Nicholas Fugal
2020 年 6 月 10 日
2 投票
To make things even worse, the font size of the headers changes from something small in 2019b to something large in 2020a. With no way of adjusting the font properties it means that uitables designed in 2019b will likely require a re-layout in 2020a because of the larger text.
MathWorks, PLEASE give us a way for format the headers!

Eric Delgado
2023 年 10 月 5 日
編集済み: Eric Delgado
2023 年 10 月 5 日
0 投票
ccTools provides customization of a lot of components (including the header of an uitable). See example in page 15 of the doc.
カテゴリ
ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!