X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9121bed24932c908973354297da8750adc4f7374..90da75e673f51b30e04629035d8bf7501fd00e30:/samples/minifram/test.cpp diff --git a/samples/minifram/test.cpp b/samples/minifram/test.cpp index 6d1b34c895..1906176c68 100644 --- a/samples/minifram/test.cpp +++ b/samples/minifram/test.cpp @@ -51,14 +51,6 @@ wxButton *button = (wxButton*) NULL; // main frame bool MyApp::OnInit() { - // Create the mini frame window - mini_frame = new MyMiniFrame((wxFrame *) NULL, -1, "wxMiniFrame sample", - wxPoint(100, 100), wxSize(220, 100)); - mini_frame_exists = TRUE; - - mini_frame->CreateToolBar(wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, ID_TOOLBAR); - InitToolbar(mini_frame->GetToolBar()); - // Create the main frame window main_frame = new MyMainFrame((wxFrame *) NULL, -1, "wxFrame sample", wxPoint(100, 100), wxSize(300, 200)); @@ -68,6 +60,14 @@ bool MyApp::OnInit() button = new wxButton( main_frame, ID_REPARENT, "Press to reparent!" ); + // Create the mini frame window + mini_frame = new MyMiniFrame( main_frame, -1, "wxMiniFrame sample", + wxPoint(100, 100), wxSize(220, 100)); + mini_frame_exists = TRUE; + + mini_frame->CreateToolBar(wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT, ID_TOOLBAR); + InitToolbar(mini_frame->GetToolBar()); + #ifdef __WXMSW__ main_frame->SetIcon(wxIcon("mondrian")); mini_frame->SetIcon(wxIcon("mondrian"));