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
This commit is contained in:
@@ -325,12 +325,7 @@ bool WidgetsApp::OnInit()
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
WidgetsFrame::WidgetsFrame(const wxString& title)
|
WidgetsFrame::WidgetsFrame(const wxString& title)
|
||||||
: wxFrame(NULL, wxID_ANY, title,
|
: wxFrame(NULL, wxID_ANY, title)
|
||||||
wxDefaultPosition, wxDefaultSize,
|
|
||||||
wxDEFAULT_FRAME_STYLE |
|
|
||||||
wxNO_FULL_REPAINT_ON_RESIZE |
|
|
||||||
wxCLIP_CHILDREN |
|
|
||||||
wxTAB_TRAVERSAL)
|
|
||||||
{
|
{
|
||||||
// set the frame icon
|
// set the frame icon
|
||||||
SetIcon(wxICON(sample));
|
SetIcon(wxICON(sample));
|
||||||
@@ -374,15 +369,14 @@ WidgetsFrame::WidgetsFrame(const wxString& title)
|
|||||||
#endif // wxUSE_MENUS
|
#endif // wxUSE_MENUS
|
||||||
|
|
||||||
// create controls
|
// create controls
|
||||||
m_panel = new wxPanel(this, wxID_ANY,
|
m_panel = new wxPanel(this, wxID_ANY);
|
||||||
wxDefaultPosition, wxDefaultSize, wxCLIP_CHILDREN);
|
|
||||||
|
|
||||||
wxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
|
wxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
// we have 2 panes: book with pages demonstrating the controls in the
|
// we have 2 panes: book with pages demonstrating the controls in the
|
||||||
// upper one and the log window with some buttons in the lower
|
// 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)
|
// Uncomment to suppress page theme (draw in solid colour)
|
||||||
//style |= wxNB_NOPAGETHEME;
|
//style |= wxNB_NOPAGETHEME;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user