Alain B wrote:In the context of the bug, by moving the wnd->addChild(p_list); after the for loop (both in the extract in my last post) I see the three expected items.
That's what I needed. Thank you, i will look into it in a bit.
Moderators: CEGUI MVP, CEGUI Team
Alain B wrote:In the context of the bug, by moving the wnd->addChild(p_list); after the for loop (both in the extract in my last post) I see the three expected items.
Alain B wrote:I got the sample brower to compile on Gentoo. I'll propose them a patch for it. Contrary to what I first thought, there's no need to change CEGUI's cmake build.
On the other front, I reproduce the bug by simply adding the following block in HellowWorld.cpp, at the end of HelloWorldDemo::initialise (just before the return true; line). Didn't seem worth a patch since it's a single block copy/paste. Whole modified file is here.Code: Select all
CEGUI::ItemListbox * p_list = static_cast<CEGUI::ItemListbox *>(
CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/ItemListbox", "test_listbox"));
p_list->setSize(CEGUI::USize(CEGUI::UDim(0.9f,0),CEGUI::UDim(0.9f,0)));
wnd->addChild(p_list);
for(unsigned i = 0; i < 3; ++i)
{
std::ostringstream oss;
oss << i;
std::string text = oss.str();
CEGUI::ItemEntry * p_itm =
static_cast<CEGUI::ItemEntry *>(
CEGUI::WindowManager::getSingleton().createWindow("TaharezLook/ListboxItem", text));
p_itm->setText(text);
p_list->addItem(p_itm);
}
p_list->invalidate();
p_list->show();
6606 (cfab39dac3b7) Fix for sizing of FrameWindow - the children windows that should become visibile …
Alain B wrote:I love it when bug disappear as a side-effect of another fix
I'll edit OP title to mark it as solved.
Return to “Bug Reports, Suggestions, Feature Requests”
Users browsing this forum: No registered users and 2 guests