]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/stc/stctest.cpp
conditional compilation for compositing
[wxWidgets.git] / contrib / samples / stc / stctest.cpp
index 4f32ca3cd468b5a4af8928f83e1d1a07e7370b2b..7fa8e3f17dc4508e3195e331ebc053adaa97961e 100644 (file)
@@ -1,5 +1,5 @@
 //////////////////////////////////////////////////////////////////////////////
-// File:        app.cpp
+// File:        stctest.cpp
 // Purpose:     STC test application
 // Maintainer:  Otto Wyss
 // Created:     2003-09-01
@@ -191,7 +191,7 @@ IMPLEMENT_APP (App)
 bool App::OnInit () {
 
     wxInitAllImageHandlers();
-    
+
     // set application and vendor name
     SetAppName (APP_NAME);
     SetVendorName (APP_VENDOR);
@@ -378,8 +378,10 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) {
                 return;
             }
         }
-        Destroy();
     }
+    m_edit->SetFilename (wxEmptyString);
+    m_edit->ClearAll();
+    m_edit->SetSavePoint();
 }
 
 // properties event handlers
@@ -641,7 +643,7 @@ AppAbout::AppAbout (wxWindow *parent,
 
     SetSizerAndFit (totalpane);
 
-    CenterOnScreen();    
+    CenterOnScreen();
     ShowModal();
 }