added wxFrame* wxXmlResource::LoadFrame(parent,name)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -171,10 +171,7 @@ wxToolBar *wxXmlResource::LoadToolBar(wxWindow *parent, const wxString& name)
|
|||||||
|
|
||||||
wxDialog *wxXmlResource::LoadDialog(wxWindow *parent, const wxString& name)
|
wxDialog *wxXmlResource::LoadDialog(wxWindow *parent, const wxString& name)
|
||||||
{
|
{
|
||||||
wxDialog *dialog = new wxDialog;
|
return (wxDialog*)CreateResFromNode(FindResource(name, wxT("wxDialog")), parent, NULL);
|
||||||
if (!LoadDialog(dialog, parent, name))
|
|
||||||
{ delete dialog; return NULL; }
|
|
||||||
else return dialog;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxXmlResource::LoadDialog(wxDialog *dlg, wxWindow *parent, const wxString& name)
|
bool wxXmlResource::LoadDialog(wxDialog *dlg, wxWindow *parent, const wxString& name)
|
||||||
|
@@ -171,10 +171,7 @@ wxToolBar *wxXmlResource::LoadToolBar(wxWindow *parent, const wxString& name)
|
|||||||
|
|
||||||
wxDialog *wxXmlResource::LoadDialog(wxWindow *parent, const wxString& name)
|
wxDialog *wxXmlResource::LoadDialog(wxWindow *parent, const wxString& name)
|
||||||
{
|
{
|
||||||
wxDialog *dialog = new wxDialog;
|
return (wxDialog*)CreateResFromNode(FindResource(name, wxT("wxDialog")), parent, NULL);
|
||||||
if (!LoadDialog(dialog, parent, name))
|
|
||||||
{ delete dialog; return NULL; }
|
|
||||||
else return dialog;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxXmlResource::LoadDialog(wxDialog *dlg, wxWindow *parent, const wxString& name)
|
bool wxXmlResource::LoadDialog(wxDialog *dlg, wxWindow *parent, const wxString& name)
|
||||||
|
Reference in New Issue
Block a user