]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/textctrl.cpp
implemented DrawCheckButton() for XP renderer; code cleanup
[wxWidgets.git] / samples / widgets / textctrl.cpp
index 3a6c35f698f0f90229bf562345107bbeca376981..6fd19a54978ad12bb95734197e38c28b69e15c33 100644 (file)
@@ -136,6 +136,7 @@ public:
     virtual ~TextWidgetsPage(){};
 
     virtual wxControl *GetWidget() const { return m_text; }
+    virtual void RecreateWidget() { CreateText(); }
 
 protected:
     // create an info text contorl
@@ -599,7 +600,7 @@ void TextWidgetsPage::Reset()
 
 void TextWidgetsPage::CreateText()
 {
-    int flags = 0;
+    int flags = ms_defaultFlags;
     switch ( m_radioTextLines->GetSelection() )
     {
         default: