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:
@@ -283,9 +283,6 @@ class WXDLLEXPORT wxDocManager: public wxEvtHandler
|
|||||||
void OnUndo(wxCommandEvent& event);
|
void OnUndo(wxCommandEvent& event);
|
||||||
void OnRedo(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 wxDocument *CreateDocument(const wxString& path, long flags = 0);
|
||||||
virtual wxView *CreateView(wxDocument *doc, long flags = 0);
|
virtual wxView *CreateView(wxDocument *doc, long flags = 0);
|
||||||
virtual void DeleteTemplate(wxDocTemplate *temp, long flags = 0);
|
virtual void DeleteTemplate(wxDocTemplate *temp, long flags = 0);
|
||||||
|
@@ -211,6 +211,8 @@ void MyFrame::OnIdle(wxIdleEvent& event)
|
|||||||
{
|
{
|
||||||
if ( GetStatusBar()->GetStatusText(0) != "Ready" )
|
if ( GetStatusBar()->GetStatusText(0) != "Ready" )
|
||||||
SetStatusText("Ready");
|
SetStatusText("Ready");
|
||||||
|
|
||||||
|
wxFrame::OnIdle(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
MyCanvas::MyCanvas(wxWindow* parent, int x, int y, int w, int h) :
|
MyCanvas::MyCanvas(wxWindow* parent, int x, int y, int w, int h) :
|
||||||
|
Reference in New Issue
Block a user