]> git.saurik.com Git - wxWidgets.git/commitdiff
moved text creation after tbar creation
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Oct 2003 08:41:36 +0000 (08:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Oct 2003 08:41:36 +0000 (08:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/toolbar/toolbar.cpp

index 507af205933836c1e54805953eafea996c5508fa..4699c18703ef7a99c8333e03b74ec3cbe8721daf 100644 (file)
@@ -380,7 +380,6 @@ MyFrame::MyFrame(wxFrame* parent,
        : wxFrame(parent, id, title, pos, size, style)
 {
     m_tbar = NULL;
-    m_textWindow = new wxTextCtrl(this, -1, _T(""), wxPoint(0, 0), wxSize(-1, -1), wxTE_MULTILINE);
 
     m_smallToolbar = TRUE;
     m_horzToolbar = TRUE;
@@ -458,6 +457,8 @@ MyFrame::MyFrame(wxFrame* parent,
 
     // Create the toolbar
     RecreateToolbar();
+
+    m_textWindow = new wxTextCtrl(this, -1, _T(""), wxPoint(0, 0), wxSize(-1, -1), wxTE_MULTILINE);
 }
 
 #if USE_GENERIC_TBAR