X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e974385f6ab66910ee42ca287fbf9ada2392dc1..f20a2e1f4066e4f0235698e6220f1eed91c73326:/samples/stc/stctest.cpp diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index 5331ae5114..9cc5cc88fa 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -1,5 +1,5 @@ ////////////////////////////////////////////////////////////////////////////// -// File: app.cpp +// File: stctest.cpp // Purpose: STC test application // Maintainer: Otto Wyss // Created: 2003-09-01 @@ -54,7 +54,7 @@ //============================================================================ #define APP_NAME _T("STC-Test") -#define APP_DESCR _("See http://wxguide.sourceforge.net/indexedit.html") +#define APP_DESCR _("See http://wxguide.sourceforge.net/") #define APP_MAINT _T("Otto Wyss") #define APP_VENDOR _T("wxWindows") @@ -191,7 +191,7 @@ IMPLEMENT_APP (App) bool App::OnInit () { wxInitAllImageHandlers(); - + // set application and vendor name SetAppName (APP_NAME); SetVendorName (APP_VENDOR); @@ -289,7 +289,7 @@ BEGIN_EVENT_TABLE (AppFrame, wxFrame) END_EVENT_TABLE () AppFrame::AppFrame (const wxString &title) - : wxFrame ((wxFrame *)NULL, -1, title, wxDefaultPosition, wxSize(600,400), + : wxFrame ((wxFrame *)NULL, -1, title, wxDefaultPosition, wxSize(750,550), wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE) { // intitialize important variables @@ -311,6 +311,7 @@ AppFrame::AppFrame (const wxString &title) m_edit = new Edit (this, -1); m_edit->SetFocus(); + FileOpen (_T("stctest.cpp")); } AppFrame::~AppFrame () { @@ -378,6 +379,9 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) { } } } + m_edit->SetFilename (wxEmptyString); + m_edit->ClearAll(); + m_edit->SetSavePoint(); } // properties event handlers @@ -639,7 +643,7 @@ AppAbout::AppAbout (wxWindow *parent, SetSizerAndFit (totalpane); - CenterOnScreen(); + CenterOnScreen(); ShowModal(); }