]> git.saurik.com Git - wxWidgets.git/commitdiff
Patch #821454
authorRobin Dunn <robin@alldunn.com>
Sat, 11 Oct 2003 01:20:24 +0000 (01:20 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 11 Oct 2003 01:20:24 +0000 (01:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/samples/stc/stctest.cpp
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
 // Purpose:     STC test application
 // Maintainer:  Otto Wyss
 // Created:     2003-09-01
@@ -191,7 +191,7 @@ IMPLEMENT_APP (App)
 bool App::OnInit () {
 
     wxInitAllImageHandlers();
 bool App::OnInit () {
 
     wxInitAllImageHandlers();
-    
+
     // set application and vendor name
     SetAppName (APP_NAME);
     SetVendorName (APP_VENDOR);
     // set application and vendor name
     SetAppName (APP_NAME);
     SetVendorName (APP_VENDOR);
@@ -378,8 +378,10 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) {
                 return;
             }
         }
                 return;
             }
         }
-        Destroy();
     }
     }
+    m_edit->SetFilename (wxEmptyString);
+    m_edit->ClearAll();
+    m_edit->SetSavePoint();
 }
 
 // properties event handlers
 }
 
 // properties event handlers
@@ -641,7 +643,7 @@ AppAbout::AppAbout (wxWindow *parent,
 
     SetSizerAndFit (totalpane);
 
 
     SetSizerAndFit (totalpane);
 
-    CenterOnScreen();    
+    CenterOnScreen();
     ShowModal();
 }
 
     ShowModal();
 }
 
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
 // Purpose:     STC test application
 // Maintainer:  Otto Wyss
 // Created:     2003-09-01
@@ -191,7 +191,7 @@ IMPLEMENT_APP (App)
 bool App::OnInit () {
 
     wxInitAllImageHandlers();
 bool App::OnInit () {
 
     wxInitAllImageHandlers();
-    
+
     // set application and vendor name
     SetAppName (APP_NAME);
     SetVendorName (APP_VENDOR);
     // set application and vendor name
     SetAppName (APP_NAME);
     SetVendorName (APP_VENDOR);
@@ -378,8 +378,10 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) {
                 return;
             }
         }
                 return;
             }
         }
-        Destroy();
     }
     }
+    m_edit->SetFilename (wxEmptyString);
+    m_edit->ClearAll();
+    m_edit->SetSavePoint();
 }
 
 // properties event handlers
 }
 
 // properties event handlers
@@ -641,7 +643,7 @@ AppAbout::AppAbout (wxWindow *parent,
 
     SetSizerAndFit (totalpane);
 
 
     SetSizerAndFit (totalpane);
 
-    CenterOnScreen();    
+    CenterOnScreen();
     ShowModal();
 }
 
     ShowModal();
 }