From 29c749b8baadae362b5739945646802f1e92da15 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 18 Jun 2004 08:01:32 +0000 Subject: [PATCH] test colours unsetting git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 { -- 2.45.2