From 3bb3875e13fce8472741d3d48385501ac3069387 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 2 Jul 2009 22:26:49 +0000 Subject: [PATCH] show combobox drop down/close up events (closes #10954) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/widgets/bmpcombobox.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/samples/widgets/bmpcombobox.cpp b/samples/widgets/bmpcombobox.cpp index 5a87dd263a..4495fc598a 100644 --- a/samples/widgets/bmpcombobox.cpp +++ b/samples/widgets/bmpcombobox.cpp @@ -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 -- 2.45.2