Exemplo n.º 1
0
CUIProgressBar* CScriptXmlInit::InitProgressBar(LPCSTR path, CUIWindow* parent)
{
	CUIProgressBar* pWnd			= xr_new<CUIProgressBar>();
	CUIXmlInit::InitProgressBar		(m_xml, path, 0, pWnd);
	pWnd->SetAutoDelete				(true);
	_attach_child					(pWnd, parent);
	return							pWnd;	
}
Exemplo n.º 2
0
CUIProgressBar* UIHelper::CreateProgressBar( CUIXml& xml, LPCSTR ui_path, CUIWindow* parent )
{
	CUIProgressBar* ui			= new CUIProgressBar();
	parent->AttachChild			( ui );
	ui->SetAutoDelete			( true );
	CUIXmlInit::InitProgressBar ( xml, ui_path, 0, ui );
	return ui;
}