]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
Latex corrections from Marc Albrecht
[wxWidgets.git] / samples / controls / controls.cpp
index 886edf79dc157b1a1943ca55ee32289b5e326419..71540feb37e999bf390b9eb4425dfca9e0074e4c 100644 (file)
@@ -956,14 +956,15 @@ void MyPanel::OnChangeColour(wxCommandEvent& WXUNUSED(event))
 {
     static wxColour s_colOld;
 
+    SetThemeEnabled(false);
     // test panel colour changing and propagation to the subcontrols
     if ( s_colOld.Ok() )
     {
         SetBackgroundColour(s_colOld);
         s_colOld = wxNullColour;
 
-        m_lbSelectThis->SetForegroundColour(wxT("red"));
-        m_lbSelectThis->SetBackgroundColour(wxT("white"));
+        m_lbSelectThis->SetForegroundColour(wxNullColour);
+        m_lbSelectThis->SetBackgroundColour(wxNullColour);
     }
     else
     {