X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80791c37b5d73e38ff1e77d9c42be6f4f55dc196..ac687ddffb6f199603abc2415f7bcf0d051f1eca:/samples/scroll/scroll.cpp diff --git a/samples/scroll/scroll.cpp b/samples/scroll/scroll.cpp index 0ee088f4c7..a24dc49351 100644 --- a/samples/scroll/scroll.cpp +++ b/samples/scroll/scroll.cpp @@ -2,7 +2,6 @@ // Name: scroll.cpp // Purpose: wxScrolled sample // Author: Robert Roebling -// RCS-ID: $Id$ // Copyright: (C) 1998 Robert Roebling, 2002 Ron Lee, 2003 Matt Gregory // (C) 2008 Vadim Zeitlin // Licence: wxWindows licence @@ -126,9 +125,9 @@ public: mbar->Append(menuFile, "&File"); SetMenuBar( mbar ); - Connect(wxID_DELETE, wxEVT_COMMAND_MENU_SELECTED, + Connect(wxID_DELETE, wxEVT_MENU, wxCommandEventHandler(MyCanvasFrame::OnDeleteAll)); - Connect(wxID_NEW, wxEVT_COMMAND_MENU_SELECTED, + Connect(wxID_NEW, wxEVT_MENU, wxCommandEventHandler(MyCanvasFrame::OnInsertNew)); Show(); @@ -809,7 +808,7 @@ MySizerScrolledWindow::MySizerScrolledWindow(wxWindow *parent) SetSizer( sizer ); - Connect(wxID_RESIZE_FRAME, wxEVT_COMMAND_BUTTON_CLICKED, + Connect(wxID_RESIZE_FRAME, wxEVT_BUTTON, wxCommandEventHandler(MySizerScrolledWindow::OnResizeClick)); } @@ -1233,10 +1232,8 @@ MyAutoScrollingWindow::DCNormalize(int x, int y, int w, int h) void MyAutoScrollingWindow::OnDraw(wxDC& dc) { dc.SetFont(m_font); - wxBrush normBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW) - , wxSOLID); - wxBrush selBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT) - , wxSOLID); + wxBrush normBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)); + wxBrush selBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT)); dc.SetPen(*wxTRANSPARENT_PEN); const wxString str = sm_testData; size_t strLength = str.length();