X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a78a9378207266c55b7f4c72fbfb2ae11963d0b..632b58cdce7a1b62f7aa1a26acc61e5ced04494b:/samples/controls/controls.cpp diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 6c73d21a03..4410a3deab 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -3,7 +3,6 @@ // Purpose: Controls wxWidgets sample // Author: Robert Roebling // Modified by: -// RCS-ID: $Id$ // Copyright: (c) Robert Roebling, Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -1250,8 +1249,8 @@ void MyPanel::OnChangeColour(wxCommandEvent& WXUNUSED(event)) } else { - s_colOld = wxColour(wxT("red")); - SetBackgroundColour(wxT("white")); + s_colOld = *wxRED; + SetBackgroundColour(*wxWHITE); m_lbSelectThis->SetForegroundColour(wxT("white")); m_lbSelectThis->SetBackgroundColour(wxT("red"));