]> git.saurik.com Git - wxWidgets.git/commitdiff
testing wxComboBox::SetBackgroundColour()
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 27 Feb 2004 00:02:44 +0000 (00:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 27 Feb 2004 00:02:44 +0000 (00:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index 6db8d56732e94325ef0c61aa4e969ea0c76796c7..f8e67d62b70c89ec4123811687c59f58759d26e8 100644 (file)
@@ -692,7 +692,8 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
     m_combo = new MyComboBox( panel, ID_COMBO, _T("This"),
                               wxPoint(20,25), wxSize(120, -1),
                               5, choices,
-                              /* wxCB_READONLY | */ wxPROCESS_ENTER);
+                              wxCB_READONLY | wxPROCESS_ENTER);
+    m_combo->SetBackgroundColour(*wxBLUE);
 
     (void)new wxButton( panel, ID_COMBO_SEL_NUM, _T("Select #&2"), wxPoint(180,30), wxSize(140,30) );
     (void)new wxButton( panel, ID_COMBO_SEL_STR, _T("&Select 'This'"), wxPoint(340,30), wxSize(140,30) );