diff --git a/samples/stc/stctest.cpp b/samples/stc/stctest.cpp index ff590d1b12..599722d151 100644 --- a/samples/stc/stctest.cpp +++ b/samples/stc/stctest.cpp @@ -318,9 +318,6 @@ AppFrame::AppFrame (const wxString &title) SetTitle (*g_appname); SetBackgroundColour (wxT("WHITE")); - // about box shown for 1 seconds - AppAbout dlg(this, 1000); - // create menu m_menuBar = new wxMenuBar; CreateMenu (); @@ -330,7 +327,6 @@ AppFrame::AppFrame (const wxString &title) m_edit->SetFocus(); FileOpen (wxT("stctest.cpp")); - m_edit->SetSelection(0,0); } AppFrame::~AppFrame () { @@ -588,6 +584,7 @@ void AppFrame::FileOpen (wxString fname) { wxFileName w(fname); w.Normalize(); fname = w.GetFullPath(); m_edit->LoadFile (fname); + m_edit->SelectNone(); } wxRect AppFrame::DeterminePrintSize () {