From 1e3fc113ddb8566b51075a68b59a47fb90f30358 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Jul 2006 13:38:12 +0000 Subject: [PATCH] don't use obsolete wxNO_FULL_REPAINT_ON_RESIZE flag; don't use unnecessary wxCLIP_CHILDREN one git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/widgets/widgets.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index ca8342047d..b97c3e33a8 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -325,12 +325,7 @@ bool WidgetsApp::OnInit() // ---------------------------------------------------------------------------- WidgetsFrame::WidgetsFrame(const wxString& title) - : wxFrame(NULL, wxID_ANY, title, - wxDefaultPosition, wxDefaultSize, - wxDEFAULT_FRAME_STYLE | - wxNO_FULL_REPAINT_ON_RESIZE | - wxCLIP_CHILDREN | - wxTAB_TRAVERSAL) + : wxFrame(NULL, wxID_ANY, title) { // set the frame icon SetIcon(wxICON(sample)); @@ -374,15 +369,14 @@ WidgetsFrame::WidgetsFrame(const wxString& title) #endif // wxUSE_MENUS // create controls - m_panel = new wxPanel(this, wxID_ANY, - wxDefaultPosition, wxDefaultSize, wxCLIP_CHILDREN); + m_panel = new wxPanel(this, wxID_ANY); wxSizer *sizerTop = new wxBoxSizer(wxVERTICAL); // we have 2 panes: book with pages demonstrating the controls in the // upper one and the log window with some buttons in the lower - int style = wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN|wxBK_DEFAULT; + int style = wxBK_DEFAULT; // Uncomment to suppress page theme (draw in solid colour) //style |= wxNB_NOPAGETHEME; -- 2.47.2