]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/caret/caret.cpp
Added wxHelpControllerHtml, derived from wxHtmlHelpControllerBase. API like
[wxWidgets.git] / samples / caret / caret.cpp
index 00df1d0b0dfc93c437f2d19a23d82c61dc7c7c02..3f41e9b3ac28d7be099572ee4f28ef417b2d59dc 100644 (file)
@@ -265,6 +265,8 @@ MyCanvas::MyCanvas( wxWindow *parent )
                             wxDefaultPosition, wxDefaultSize,
                             wxSUNKEN_BORDER )
 {
+    m_text = (char *)NULL;
+
     SetBackgroundColour(* wxWHITE);
 
     m_font = *wxNORMAL_FONT;
@@ -282,8 +284,6 @@ MyCanvas::MyCanvas( wxWindow *parent )
     m_xMargin = m_yMargin = 5;
     m_caret.Move(m_xMargin, m_yMargin);
     m_caret.Show();
-
-    m_text = (char *)NULL;
 }
 
 MyCanvas::~MyCanvas()