MultiColumnList headers problem
Posted: Sat Oct 24, 2009 11:35
Hi.
I want to change MultiColumnList column headers font but have no idea how to...
I wrote this code:
It changed all ListboxTextItem font but headers didn't.
I want to change MultiColumnList column headers font but have no idea how to...
I wrote this code:
Code: Select all
CEGUI::MultiColumnList* mclbox = (CEGUI::MultiColumnList*)CEGUI::WindowManager::getSingleton().getWindow("PlayersColumn");
mclbox->setProperty("Font", "Hudini-6");
mclbox->addColumn("Server name", 0, CEGUI::UDim(0.6f,0));
mclbox->addColumn("Ping", 1, CEGUI::UDim(0.3f,0));
for(int i=0; i<20; i++)
{
mclbox->addRow();
mclbox->setItem(new MyListItem("Name"), 0, i);
mclbox->setItem(new MyListItem("999"), 1, i);
}
It changed all ListboxTextItem font but headers didn't.