AshMcConnell
18-06-2010 15:47:20
Hi Folks,
I am trying to remove all widgets that are children of a ScrollView widget.
It complains that the Widget doesn't exist.
Any idea what I am doing wrong?
Thanks for your help
All the best,
Ash
I am trying to remove all widgets that are children of a ScrollView widget.
size_t count =_newsScroll->getChildCount();
for ( int i=0; i < count; ++i )
{
MyGUI::Gui::getInstance().destroyChildWidget(_newsScroll->getChildAt(i));
}
It complains that the Widget doesn't exist.
Any idea what I am doing wrong?
Thanks for your help
All the best,
Ash