]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/bmpcombobox.cpp
Support using GetTextExtent() with empty string to get descent in wxOSX.
[wxWidgets.git] / samples / widgets / bmpcombobox.cpp
index d65f82c2598f11a99120c44be566568d5d011b86..74b14b493cad638c77fb08bbc211d606c0c7fb42 100644 (file)
@@ -803,7 +803,7 @@ void BitmapComboBoxWidgetsPage::OnComboText(wxCommandEvent& event)
     wxASSERT_MSG( s == m_combobox->GetValue(),
                   wxT("event and combobox values should be the same") );
 
     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("BitmapCombobox enter pressed (now '%s')"), s.c_str());
     }
     {
         wxLogMessage(wxT("BitmapCombobox enter pressed (now '%s')"), s.c_str());
     }