Beispiel #1
0
void Properties::Clear()
{
	Base::List ChildListCopy = Children;
	for ( Base::List::iterator it = ChildListCopy.begin(); it != ChildListCopy.end(); ++it )
	{
		PropertyRow* row = gwen_cast<PropertyRow>(*it);
		if ( !row ) continue;

		row->DelayedDelete();
	}
}
void DockedTabControl::MoveTabsTo( DockedTabControl* pTarget )
{
	Base::List Children = GetTabStrip()->Children;
	for (Base::List::iterator iter = Children.begin(); iter != Children.end(); ++iter)
	{
		TabButton* pButton = gwen_cast<TabButton>(*iter);
		if ( !pButton ) continue;

		pTarget->AddPage( pButton );
	}

	Invalidate();
}