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

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-06-18 16:25:36 +00:00
parent c334e639dc
commit 47b4af9e09
2 changed files with 2 additions and 4 deletions

View File

@@ -146,8 +146,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

@@ -146,8 +146,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)