]> git.saurik.com Git - wxWidgets.git/commitdiff
XRC assigns ID to wxStaticBox created by including wxStaticBoxSizer (did what patch...
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 8 Dec 2002 13:22:00 +0000 (13:22 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 8 Dec 2002 13:22:00 +0000 (13:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xrc/xh_sizer.cpp
src/xrc/xh_sizer.cpp

index 278cc09631d33691c2ad652a644a600df159e2fa..fa5cbdccfb2eaffd24a0c7b4bbd6510d2a5e867a 100644 (file)
@@ -150,7 +150,12 @@ wxObject *wxSizerXmlHandler::DoCreateResource()
         else if (m_class == wxT("wxStaticBoxSizer"))
         {
             sizer = new wxStaticBoxSizer(
-                         new wxStaticBox(m_parentAsWindow, -1, GetText(wxT("label"))),
+                         new wxStaticBox(m_parentAsWindow,
+                                         GetID(),
+                                         GetText(wxT("label")),
+                                         wxDefaultPosition, wxDefaultSize,
+                                         0/*style*/,
+                                         GetName()),
                          GetStyle(wxT("orient"), wxHORIZONTAL));
         }
         
index 278cc09631d33691c2ad652a644a600df159e2fa..fa5cbdccfb2eaffd24a0c7b4bbd6510d2a5e867a 100644 (file)
@@ -150,7 +150,12 @@ wxObject *wxSizerXmlHandler::DoCreateResource()
         else if (m_class == wxT("wxStaticBoxSizer"))
         {
             sizer = new wxStaticBoxSizer(
-                         new wxStaticBox(m_parentAsWindow, -1, GetText(wxT("label"))),
+                         new wxStaticBox(m_parentAsWindow,
+                                         GetID(),
+                                         GetText(wxT("label")),
+                                         wxDefaultPosition, wxDefaultSize,
+                                         0/*style*/,
+                                         GetName()),
                          GetStyle(wxT("orient"), wxHORIZONTAL));
         }