]> git.saurik.com Git - wxWidgets.git/commitdiff
In splitter sample, forwarded OnIdle events to wxFrame, else UI updates don't
authorJulian Smart <julian@anthemion.co.uk>
Mon, 13 Jul 1998 20:11:21 +0000 (20:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 13 Jul 1998 20:11:21 +0000 (20:11 +0000)
work. Removed compatibility function from docview.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/docview.h
samples/splitter/test.cpp

index 087153946c4ce5c1683b64421e74ab4fb8845b74..a60bfa45360a7c523b8d823c2699ea4623ba0944 100644 (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);
index d626b81e1843c195cf02668853bea29929889cce..996b6d7b5342f14339733d12c3f9e4f2ccd9a1f7 100644 (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) :