]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
Applied patch #15286: documentation and col/rowspan demo by dghart
[wxWidgets.git] / samples / controls / controls.cpp
index 6c73d21a03a37f109d49367dfb796795b1d85614..ea60421a1e4e5fcb039e0b6bfd93f6b5f999c818 100644 (file)
@@ -1250,8 +1250,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"));