コード例 #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;	
}
コード例 #2
0
ファイル: UIHelper.cpp プロジェクト: 2asoft/xray
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;
}