Resize Font Column Header on uitable inside GUI
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a uitable inside a GUI. I managed to change the font size of its contexts, but not of the headers, I just want to make my letters "bigger", that's it.
I know I can change the format of the contents with html format, but I could not do it with the headers.
Any ideas welcome.
Thanks in advance
Jordi
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 9 Okt. 2012
t = uitable('Data',magic(3));
set(t,'ColumnName',{'1','Hello','<h1>World</h1>'})
2 Kommentare
Sean de Wolski
am 9 Okt. 2012
You could define them as variables to make it more easy to read:
hs = '<h1>' %html start
he = '</h1>' %html end
cn = {'1', 'hello', 'world'}; %original
cnh = cellfun(@(x)[hs x he],cn,'uni',false); %with html
set(t,'ColumnName',cnh) %apply
Weitere Antworten (2)
Jordi Riba
am 12 Okt. 2012
1 Kommentar
Sean de Wolski
am 12 Okt. 2012
Pleadse post this as a new question with some example code so we can reproduce it.
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!