]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix after wxScrollHelper changes (ctor argument is now not optional and...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2005 00:03:36 +0000 (00:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2005 00:03:36 +0000 (00:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/univ/textctrl.h
src/univ/textctrl.cpp

index 1c513e8b40fbdcab1910e3348189f20419219c60..503fc259db89388d4528cd624a98bca9c75732f3 100644 (file)
@@ -66,13 +66,14 @@ class WXDLLEXPORT wxTextCtrlCommandProcessor;
 // wxTextCtrl
 // ----------------------------------------------------------------------------
 
-class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase, public wxScrollHelper
+class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase,
+                               public wxScrollHelper
 {
 public:
     // creation
     // --------
 
-    wxTextCtrl() { Init(); }
+    wxTextCtrl() : wxScrollHelper(this) { Init(); }
 
     wxTextCtrl(wxWindow *parent,
                wxWindowID id,
@@ -82,6 +83,7 @@ public:
                long style = 0,
                const wxValidator& validator = wxDefaultValidator,
                const wxString& name = wxTextCtrlNameStr)
+        : wxScrollHelper(this) 
     {
         Init();
 
index 0a4a8397659b7e938056224af31ea925a031ff1a..92553baa442592b9bd8d279aed189d6859bfbe74 100644 (file)
@@ -635,9 +635,6 @@ void wxTextCtrl::Init()
     m_heightLine =
     m_widthAvg = -1;
 
-    // init wxScrollHelper
-    SetWindow(this);
-
     // init the undo manager
     m_cmdProcessor = new wxTextCtrlCommandProcessor(this);