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:
@@ -146,8 +146,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
|
|||||||
|
|
||||||
toolbar->Realize();
|
toolbar->Realize();
|
||||||
|
|
||||||
// FIXME: how can I create a toolbar without immediately setting it to the frame?
|
if (m_parentAsWindow && !GetBool(wxT("dontattachtoframe")))
|
||||||
if (m_parentAsWindow)
|
|
||||||
{
|
{
|
||||||
wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
|
wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
|
||||||
if (parentFrame)
|
if (parentFrame)
|
||||||
|
@@ -146,8 +146,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
|
|||||||
|
|
||||||
toolbar->Realize();
|
toolbar->Realize();
|
||||||
|
|
||||||
// FIXME: how can I create a toolbar without immediately setting it to the frame?
|
if (m_parentAsWindow && !GetBool(wxT("dontattachtoframe")))
|
||||||
if (m_parentAsWindow)
|
|
||||||
{
|
{
|
||||||
wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
|
wxFrame *parentFrame = wxDynamicCast(m_parent, wxFrame);
|
||||||
if (parentFrame)
|
if (parentFrame)
|
||||||
|
Reference in New Issue
Block a user