X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a78a9378207266c55b7f4c72fbfb2ae11963d0b..f7667b84a6adbb6fcfeca12d5ef3ad9c61277b55:/samples/controls/controls.cpp?ds=sidebyside 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"));