]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
Rewrite ConvertToGreyscale() and ConvertToDisabled()
[wxWidgets.git] / samples / controls / controls.cpp
index 6c73d21a03a37f109d49367dfb796795b1d85614..4410a3deabd188c314391c2fd8936768f830f9a4 100644 (file)
@@ -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"));