In splitter sample, forwarded OnIdle events to wxFrame, else UI updates don't

work. Removed compatibility function from docview.h.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 1998-07-13 20:11:21 +00:00
parent 0180d5daae
commit d29d303b1c
2 changed files with 2 additions and 3 deletions

View File

@ -283,9 +283,6 @@ class WXDLLEXPORT wxDocManager: public wxEvtHandler
void OnUndo(wxCommandEvent& event);
void OnRedo(wxCommandEvent& event);
#ifdef WXWIN_COMPATIBILITY
virtual wxDocument *CreateDocument(char *WXUNUSED(path), long WXUNUSED(flags = 0)) { return NULL; };
#endif
virtual wxDocument *CreateDocument(const wxString& path, long flags = 0);
virtual wxView *CreateView(wxDocument *doc, long flags = 0);
virtual void DeleteTemplate(wxDocTemplate *temp, long flags = 0);

View File

@ -211,6 +211,8 @@ void MyFrame::OnIdle(wxIdleEvent& event)
{
if ( GetStatusBar()->GetStatusText(0) != "Ready" )
SetStatusText("Ready");
wxFrame::OnIdle(event);
}
MyCanvas::MyCanvas(wxWindow* parent, int x, int y, int w, int h) :