Some stubs includes removed from wxMotif; wxNotebook sample hack to make it display;

changes to defs.h and memory.h etc. for Solaris compilation


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-12-11 16:09:06 +00:00
parent 92976ab62b
commit 5dcf05ae08
28 changed files with 96 additions and 45 deletions

View File

@@ -44,6 +44,13 @@ bool MyApp::OnInit(void)
#else
frame = new MyFrame((wxFrame*) NULL, -1, (char *) "Notebook", wxPoint(-1, -1), wxSize(365, 390), wxDEFAULT_FRAME_STYLE);
// Problem with Motif whereby it doesn't size properly unless
// you set the size again (to a different size than before,
// since SetSize is optimized)
#ifdef __WXMOTIF__
frame->SetSize(-1, -1, 370, 390);
#endif
return TRUE;
#endif
}
@@ -82,7 +89,7 @@ void MyApp::InitTabView(wxNotebook* notebook, wxWindow* window)
(void)new wxButton(panel1, -1, "Press me", wxPoint(10, 10));
(void)new wxTextCtrl(panel1, -1, "1234", wxPoint(10, 40), wxSize(120, 150));
notebook->AddPage(panel1, "Cat");
notebook->AddPage(panel1, "Cat", TRUE);
wxPanel *panel2 = new wxPanel(notebook, -1);
panel2->SetBackgroundColour(wxColour("BLUE"));