make it possible to not attach toolbars to frames (John Anderson)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-06-18 16:17:54 +00:00
parent 2f42e5b6bf
commit 017b6a0d40
2 changed files with 2 additions and 4 deletions

View 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)

View 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)