fixed sizers-inside-wxFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,9 +137,10 @@ wxObject *wxSizerXmlHandler::DoCreateResource()
|
||||
|
||||
wxCHECK_MSG(m_parentSizer != NULL ||
|
||||
((IsOfClass(parentNode, wxT("wxPanel")) ||
|
||||
IsOfClass(parentNode, wxT("wxFrame")) ||
|
||||
IsOfClass(parentNode, wxT("wxDialog"))) &&
|
||||
parentNode->GetType() == wxXML_ELEMENT_NODE), NULL,
|
||||
wxT("Incorrect use of sizer: parent is not 'wxDialog' or 'wxPanel'."));
|
||||
wxT("Incorrect use of sizer: parent is not 'wxDialog', 'wxFrame' or 'wxPanel'."));
|
||||
|
||||
if (m_class == wxT("wxBoxSizer"))
|
||||
sizer = new wxBoxSizer(GetStyle(wxT("orient"), wxHORIZONTAL));
|
||||
|
@@ -137,9 +137,10 @@ wxObject *wxSizerXmlHandler::DoCreateResource()
|
||||
|
||||
wxCHECK_MSG(m_parentSizer != NULL ||
|
||||
((IsOfClass(parentNode, wxT("wxPanel")) ||
|
||||
IsOfClass(parentNode, wxT("wxFrame")) ||
|
||||
IsOfClass(parentNode, wxT("wxDialog"))) &&
|
||||
parentNode->GetType() == wxXML_ELEMENT_NODE), NULL,
|
||||
wxT("Incorrect use of sizer: parent is not 'wxDialog' or 'wxPanel'."));
|
||||
wxT("Incorrect use of sizer: parent is not 'wxDialog', 'wxFrame' or 'wxPanel'."));
|
||||
|
||||
if (m_class == wxT("wxBoxSizer"))
|
||||
sizer = new wxBoxSizer(GetStyle(wxT("orient"), wxHORIZONTAL));
|
||||
|
Reference in New Issue
Block a user