X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..14619f10b0bdb630206607abd0ce0319d45e095a:/samples/widgets/odcombobox.cpp?ds=sidebyside diff --git a/samples/widgets/odcombobox.cpp b/samples/widgets/odcombobox.cpp index 419a13408a..c29e7e88cc 100644 --- a/samples/widgets/odcombobox.cpp +++ b/samples/widgets/odcombobox.cpp @@ -541,7 +541,7 @@ void ODComboboxWidgetsPage::CreateCombo() if ( m_chkBitmapbutton->GetValue() ) { - wxBitmap bmpNormal = CreateBitmap(wxColour(0,0,255)); + wxBitmap bmpNormal = CreateBitmap(*wxBLUE); wxBitmap bmpPressed = CreateBitmap(wxColour(0,0,128)); wxBitmap bmpHover = CreateBitmap(wxColour(128,128,255)); m_combobox->SetButtonBitmaps(bmpNormal,m_chkStdbutton->GetValue(),bmpPressed,bmpHover); @@ -764,7 +764,7 @@ void ODComboboxWidgetsPage::OnComboText(wxCommandEvent& event) wxASSERT_MSG( s == m_combobox->GetValue(), wxT("event and combobox values should be the same") ); - if (event.GetEventType() == wxEVT_COMMAND_TEXT_ENTER) + if (event.GetEventType() == wxEVT_TEXT_ENTER) { wxLogMessage(wxT("OwnerDrawnCombobox enter pressed (now '%s')"), s.c_str()); }