uitable

 采纳的回答

Oleg Komarov
Oleg Komarov 2012-3-5

0 个投票

An alternative:
You could modify:
function outHtml = colText(inText, inColor)
% return a HTML string with colored font
outHtml = ['<body bgcolor="Silver", font color="', ...
inColor, ...
'">', ...
inText, ...
'</font></body>'];
end
Note the bgcolor, however the result is not so nice (but you can customize each cell).
Another thing you could do is play with the 'BackgroundColor' property, but it affects all cells or you can customize odd, even.

1 个评论

Aldin
Aldin 2012-3-5
Thank you so much it's helpful but how to highlight whole cell not text

请先登录,再进行评论。

更多回答(1 个)

Jan
Jan 2012-3-5

0 个投票

I suggest FEX: uigetdate, the most fanciest program I've ever seen in the FEX - thanks Elmar!

4 个评论

On your suggestion, checking it out!
Aldin
Aldin 2012-3-5
Yes, I know for that way. There is also another way (just type uicalendar on workspace). But how to implement this in .fig file. Only what i don't know to implement is to highlighting the current date on uitable of my calendar.
Jan's suggestion was to look in the code of the submission to check how its author has implemented it.
Aldin
Aldin 2012-3-5
Yes, but is complicated :)

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Calendar 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by