Tab item font size

souvarine

21-09-2009 12:05:23

Hello.

I can't figure out how to set the font name and height of a tab item.
The following code makes compilation warning and doesn't work anyway. I didn't find anything in the doc.

MyGUI::TabItemPtr sheet = tabContainer->addItem(name);
sheet->setFontName(fontName);
sheet->setFontHeight(fontSize);


Setting font name and size in the skin isn't an option for me, I must set it in the code.
Thanks.

my.name

22-09-2009 11:35:59

only in skin