]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/display/display.cpp
Fixed HitTest for columns > 1
[wxWidgets.git] / samples / display / display.cpp
index c497f25a234a2d8027fca46da8ec0baa88ce0f75..22a94cf0b689c96fcbb060ae82f22ce76e90cd7c 100644 (file)
@@ -293,10 +293,11 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size,
                                              (unsigned long)nDpy));
     }
 
-    wxNotebookSizer *notebookSizer = new wxNotebookSizer(m_notebook);
-    panel->SetSizer(notebookSizer);
-    notebookSizer->Fit(this);
-
+    wxBoxSizer *sizer = new wxBoxSizer(wxHORIZONTAL);
+    sizer->Add(m_notebook, 1, wxEXPAND);
+    panel->SetSizer(sizer);
+    sizer->Fit(this);
+    sizer->SetSizeHints(this);
 }
 
 wxString MyFrame::VideoModeToText(const wxVideoMode& mode)