]> git.saurik.com Git - wxWidgets.git/commitdiff
make it possible to not attach toolbars to frames (John Anderson)
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 18 Jun 2003 16:17:54 +0000 (16:17 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 18 Jun 2003 16:17:54 +0000 (16:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xrc/xh_toolb.cpp
src/xrc/xh_toolb.cpp

index 4e472a3dc9a1e8afe7ce9325312b5b7a33171885..40fc9246df9891200836849962e6571156d72376 100644 (file)
@@ -148,8 +148,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
 
         toolbar->Realize();
 
-        // FIXME: how can I create a toolbar without immediately setting it to the frame?
-        if (m_parentAsWindow)
+        if (m_parentAsWindow && !GetBool(wxT("dontattachtoframe")))
         {
             wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
             if (parentFrame)
index 4e472a3dc9a1e8afe7ce9325312b5b7a33171885..40fc9246df9891200836849962e6571156d72376 100644 (file)
@@ -148,8 +148,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
 
         toolbar->Realize();
 
-        // FIXME: how can I create a toolbar without immediately setting it to the frame?
-        if (m_parentAsWindow)
+        if (m_parentAsWindow && !GetBool(wxT("dontattachtoframe")))
         {
             wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
             if (parentFrame)