From f998c383d45547d8967273026b72e7caeace8b12 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 May 2000 22:54:08 +0000 Subject: [PATCH] minor changes to the sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/exec/exec.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp index 06e51aa59d..8f39d8121e 100644 --- a/samples/exec/exec.cpp +++ b/samples/exec/exec.cpp @@ -94,8 +94,7 @@ public: void OnIdle(wxIdleEvent& event); // for MyPipedProcess - void OnProcessTerminated(MyPipedProcess *process) - { m_running.Remove(process); } + void OnProcessTerminated(MyPipedProcess *process); wxListBox *GetLogListBox() const { return m_lbox; } private: @@ -232,11 +231,6 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) wxApp::s_macAboutMenuItemId = Exec_About; #endif - // set the frame icon -#ifndef __WXGTK__ - SetIcon(wxICON(mondrian)); -#endif - // create a menu bar wxMenu *menuFile = new wxMenu(_T(""), wxMENU_TEAROFF); menuFile->Append(Exec_ClearLog, _T("&Clear log\tCtrl-C"), @@ -402,6 +396,8 @@ void MyFrame::OnExecWithRedirect(wxCommandEvent& WXUNUSED(event)) { m_lbox->Append(output[n]); } + + m_lbox->Append(_T("--- End of output ---")); } } else // async exec @@ -477,6 +473,11 @@ void MyFrame::OnIdle(wxIdleEvent& event) } } +void MyFrame::OnProcessTerminated(MyPipedProcess *process) +{ + m_running.Remove(process); +} + // ---------------------------------------------------------------------------- // MyProcess // ----------------------------------------------------------------------------