X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5014bb3a2f07747a69c486ff3e3732a8cabd37fd..751731864888f00e31e6dce1092ac28a1fac5358:/samples/controls/controls.cpp?ds=inline diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 886edf79dc..71540feb37 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -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 {