Sign in to follow this  

crazy eddie's GUI multicolumn lists

This topic is 4381 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone have experience with CEGUI's multicolumnlists? I'm just trying to add a new row to the list but it doesn't want to appear!? The columns are showing like they should, but no rows I try to add.

CEGUI::WindowManager	&wmgr = CEGUI::WindowManager::getSingleton();

m_pGames = (CEGUI::MultiColumnList*)wmgr.createWindow("WindowsLook/MultiColumnList", "gameslist");
Graphics_Handler::Get_Ptr()->m_pRoot->addChildWindow(m_pGames);

m_pGames->setRect(CEGUI::Absolute, CEGUI::Rect(50, 30, 400, 300));
m_pGames->setEnabled(true);
m_pGames->setSelectionMode(CEGUI::MultiColumnList::SelectionMode::RowSingle);
m_pGames->setShowVertScrollbar(true);
m_pGames->setShowHorzScrollbar(false);
m_pGames->addColumn("Name", 0, 0.7f);
m_pGames->addColumn("Players", 1, 0.3f);

m_pGames->addRow(new CEGUI::ListboxTextItem("Testing"), 0);


This should suffice, no?

Share this post


Link to post
Share on other sites
Nevermind, I think I know what it is now. It appears the list items are added to the list, only their default color is white. And as the background color is also white it's pretty damn hard to see them.

So I just changed the list items color. Doh, so much time spent on something this simple... :(

Share this post


Link to post
Share on other sites

This topic is 4381 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this