フィルターのクリア

Change font value of uitable headings in GUI

8 ビュー (過去 30 日間)
James Boyle
James Boyle 2017 年 8 月 2 日
コメント済み: James Boyle 2017 年 8 月 2 日
I've added an image to highlight what I mean. I can change the font easily for the values in my table by using xtable.FontSize = 6; but the titles in the left hand column always stay the same size. This is a problem because when I run the GUI on a machine with a smaller screen size, the left hand column takes up the entirety of the table width. Changing ColumnWidth does not help either. Is there a way of doing this, even if it is a complicated work around? Thanks. (Windows 10, R2016a)

採用された回答

ES
ES 2017 年 8 月 2 日
You should use HTML tags.
ColumnNames = { ....
'<html><center /><font face="verdana" size=3>Column Heading 1</font></html>', ...
'<html><center /><font face="verdana" size=3>Column Heading 2</font></html>', ...
set(hObject, 'ColumnName',ColumnNames);
set(hObject, 'ColumnWidth',ColumnWidth);
  1 件のコメント
James Boyle
James Boyle 2017 年 8 月 2 日
Thanks, this is really good, however when I apply it to a Row, it for some reason makes the row take up the entire length of the table! Any ideas how to restrict its length? Thanks!

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

その他の回答 (0 件)

カテゴリ

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