X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a78a9378207266c55b7f4c72fbfb2ae11963d0b..0fd078b7fc55d5bfa7e3d8e82955dc3341de8a8f:/samples/controls/controls.cpp diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 6c73d21a03..ea60421a1e 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -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"));