Jump to content
  • Advertisement
Sign in to follow this  
DarkZoulz

crazy eddie's GUI multicolumn lists

This topic is 4691 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!