How to change the font size of columns' and rows' names in a table created with AppDesigner?

13 ビュー (過去 30 日間)
Hi, I'm trying to make my app easier to read, so I want to increase the font size, but when I change it for my uitable, it only applies to the data, not the rows' or columns' names.

回答 (1 件)

Srijith Kasaragod
Srijith Kasaragod 2022 年 4 月 7 日
編集済み: Srijith Kasaragod 2022 年 4 月 7 日
The ability to control the font size of 'uitable' column and row names in MALTAB app Designer is not supported currently. Our developers are aware of this issue and might consider incorporating this in a future release.
A workaround is to create an array of "uicontrol" edit boxes to mimic a table. Since each cell is now a separate edit box, you can individually modify the edit box "uicontrol" properties 'FontName', 'ForegroundColor', 'FontSize', 'BackgroundColor', and 'HorizontalAlignment' for each cell. The "set" function can be used to change the properties of one edit box or multiple edit boxes at the same time.
Note that a drawback to this workaround is that you cannot select multiple cells like you can in a "uitable", since each cell is actually a separate edit box.
Regards,
Srijith
  2 件のコメント
Eric Delgado
Eric Delgado 2022 年 4 月 10 日
I am waiting for this (apparently) simple functionality for almost three years, but it's important to change not only the FontSize property, but also the FontName and WordWrap properties.
It could be implemented in uistyle... or putting HTML interpreter in uitable
Eric Delgado
Eric Delgado 2022 年 4 月 10 日
Look how ugly could be a uitable without those properties. FontSize, FontName and WordWrap, please!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by