]> git.saurik.com Git - wxWidgets.git/commitdiff
show combobox drop down/close up events (closes #10954)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 2 Jul 2009 22:26:49 +0000 (22:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 2 Jul 2009 22:26:49 +0000 (22:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/bmpcombobox.cpp

index 5a87dd263ab3d03a3edbba97e7af1adc2ff29de7..4495fc598a24702878f3e36f60a4347e181d928c 100644 (file)
@@ -128,6 +128,8 @@ protected:
     void OnButtonAddMany(wxCommandEvent& event);
 
     void OnComboBox(wxCommandEvent& event);
+    void OnDropDown(wxCommandEvent& event);
+    void OnCloseUp(wxCommandEvent& event);
     void OnComboText(wxCommandEvent& event);
 
     void OnCheckOrRadioBox(wxCommandEvent& event);
@@ -225,6 +227,8 @@ BEGIN_EVENT_TABLE(BitmapComboBoxWidgetsPage, WidgetsPage)
     EVT_UPDATE_UI(BitmapComboBoxPage_SetFromFile, BitmapComboBoxWidgetsPage::OnUpdateUIItemManipulator)
     EVT_UPDATE_UI(BitmapComboBoxPage_DeleteSel, BitmapComboBoxWidgetsPage::OnUpdateUIItemManipulator)
 
+    EVT_COMBOBOX_DROPDOWN(BitmapComboBoxPage_Combo, BitmapComboBoxWidgetsPage::OnDropDown)
+    EVT_COMBOBOX_CLOSEUP(BitmapComboBoxPage_Combo, BitmapComboBoxWidgetsPage::OnCloseUp)
     EVT_COMBOBOX(BitmapComboBoxPage_Combo, BitmapComboBoxWidgetsPage::OnComboBox)
     EVT_TEXT(BitmapComboBoxPage_Combo, BitmapComboBoxWidgetsPage::OnComboText)
     EVT_TEXT_ENTER(BitmapComboBoxPage_Combo, BitmapComboBoxWidgetsPage::OnComboText)
@@ -938,4 +942,14 @@ wxBitmap BitmapComboBoxWidgetsPage::CreateBitmap(const wxColour& colour)
     return bmp;
 }
 
+void BitmapComboBoxWidgetsPage::OnDropDown(wxCommandEvent& event)
+{
+    wxLogMessage(_T("Combobox dropped down"));
+}
+
+void BitmapComboBoxWidgetsPage::OnCloseUp(wxCommandEvent& event)
+{
+    wxLogMessage(_T("Combobox closed up"));
+}
+
 #endif // wxUSE_BITMAPCOMBOBOX