Have wxComboCtrl generate wxEVT_COMMAND_COMBOBOX_DROPDOWN and wxEVT_COMMAND_COMBOBOX_CLOSEUP events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-09-26 09:15:29 +00:00
parent f4c24d3da4
commit a1d5aa9361
4 changed files with 59 additions and 20 deletions

View File

@@ -304,6 +304,12 @@ struct wxComboCtrlFeatures
@event{EVT_TEXT_ENTER(id, func)}
Process a wxEVT_COMMAND_TEXT_ENTER event, when RETURN is pressed in
the combo control.
@event{EVT_COMBOX_DROPDOWN(id, func)}
Process a wxEVT_COMMAND_COMBOBOX_DROPDOWN event, which is generated
when the popup window is shown (drops down).
@event{EVT_COMBOX_CLOSEUP(id, func)}
Process a wxEVT_COMMAND_COMBOBOX_CLOSEUP event, which is generated
when the popup window of the combo control disappears (closes up).
@endEventTable
@library{wxbase}
@@ -504,8 +510,12 @@ public:
/**
Dismisses the popup window.
@param generateEvent
Set this to @true in order to generate
wxEVT_COMMAND_COMBOBOX_CLOSEUP event.
*/
virtual void HidePopup();
virtual void HidePopup(bool generateEvent=false);
/**
Returns @true if the popup is currently shown