git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35925
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// wxTextCtrl
// ----------------------------------------------------------------------------
// wxTextCtrl
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase, public wxScrollHelper
+class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase,
+ public wxScrollHelper
{
public:
// creation
// --------
{
public:
// creation
// --------
- wxTextCtrl() { Init(); }
+ wxTextCtrl() : wxScrollHelper(this) { Init(); }
wxTextCtrl(wxWindow *parent,
wxWindowID id,
wxTextCtrl(wxWindow *parent,
wxWindowID id,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxTextCtrlNameStr)
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxTextCtrlNameStr)
m_heightLine =
m_widthAvg = -1;
m_heightLine =
m_widthAvg = -1;
- // init wxScrollHelper
- SetWindow(this);
-
// init the undo manager
m_cmdProcessor = new wxTextCtrlCommandProcessor(this);
// init the undo manager
m_cmdProcessor = new wxTextCtrlCommandProcessor(this);