part of wxWizard loading from WXR patch I forgot to commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3145,6 +3145,9 @@ bool wxWindowBase::LoadFromResource(wxWindow *parent, const wxString& resourceNa
|
|||||||
int height = resource->GetHeight();
|
int height = resource->GetHeight();
|
||||||
wxString name = resource->GetName();
|
wxString name = resource->GetName();
|
||||||
|
|
||||||
|
// this is used for loading wxWizard pages from WXR
|
||||||
|
if ( parent != this )
|
||||||
|
{
|
||||||
if (IsKindOf(CLASSINFO(wxDialog)))
|
if (IsKindOf(CLASSINFO(wxDialog)))
|
||||||
{
|
{
|
||||||
wxDialog *dialogBox = (wxDialog *)this;
|
wxDialog *dialogBox = (wxDialog *)this;
|
||||||
@@ -3167,6 +3170,7 @@ bool wxWindowBase::LoadFromResource(wxWindow *parent, const wxString& resourceNa
|
|||||||
if (!((wxWindow *)this)->Create(parent, -1, wxPoint(x, y), wxSize(width, height), theWindowStyle, name))
|
if (!((wxWindow *)this)->Create(parent, -1, wxPoint(x, y), wxSize(width, height), theWindowStyle, name))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((resource->GetResourceStyle() & wxRESOURCE_USE_DEFAULTS) != 0)
|
if ((resource->GetResourceStyle() & wxRESOURCE_USE_DEFAULTS) != 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user