ItemBox not displaying items

SirDude0Lot

27-02-2013 01:01:03

Hello.

I currently need the simplest way of displaying the content of a Item Box, the ItemBox demo is way to complicated and has to much features for what I want to do.

I want to keep it as simple as possible, Currently i do:

MyGUI::ItemBoxPtr ItemWindow = m_Gui->createWidget<MyGUI::ItemBox>("ItemBox", 400, 400, 400, 200, MyGUI::Align::Default, "Overlapped", "ItemWindow");
ItemWindow->addItem((std::string)"TestData");

But this does not display anything in the Item Box, anyone has a solution?
Thanks

Altren

27-02-2013 08:36:51

Look at UnitTest_ItemBox_Info sources, there is not so complex source code.