#include "wx/wx.h"
#endif
-#if !USE_DOC_VIEW_ARCHITECTURE
-#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
+#if !wxUSE_DOC_VIEW_ARCHITECTURE
+#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h!
#endif
#include "docview.h"
// X seems to require a forced resize
int x, y;
frame->GetSize(&x, &y);
- frame->SetSize(x, y);
+ frame->SetSize(-1, -1, x, y);
#endif
frame->Show(TRUE);
+ Activate(TRUE);
return TRUE;
}
// X seems to require a forced resize
int x, y;
frame->GetSize(&x, &y);
- frame->SetSize(x, y);
+ frame->SetSize(-1, -1, x, y);
#endif
frame->Show(TRUE);
END_EVENT_TABLE()
// Define a constructor for my canvas
-MyCanvas::MyCanvas(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style):
+MyCanvas::MyCanvas(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style):
wxScrolledWindow(frame, -1, pos, size, style)
{
view = v;
}
// Define a constructor for my text subwindow
-MyTextWindow::MyTextWindow(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style):
+MyTextWindow::MyTextWindow(wxView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style):
wxTextCtrl(frame, -1, "", pos, size, style)
{
view = v;