Add wxComboBox-compatible Popup() and Dismiss() functions in wxComboCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2078,11 +2078,7 @@ void wxComboCtrlBase::OnButtonClick()
|
||||
{
|
||||
case Hidden:
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_DROPDOWN, GetId());
|
||||
event.SetEventObject(this);
|
||||
HandleWindowEvent(event);
|
||||
|
||||
ShowPopup();
|
||||
Popup();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2095,6 +2091,15 @@ void wxComboCtrlBase::OnButtonClick()
|
||||
}
|
||||
}
|
||||
|
||||
void wxComboCtrlBase::Popup()
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_DROPDOWN, GetId());
|
||||
event.SetEventObject(this);
|
||||
HandleWindowEvent(event);
|
||||
|
||||
ShowPopup();
|
||||
}
|
||||
|
||||
void wxComboCtrlBase::ShowPopup()
|
||||
{
|
||||
EnsurePopupControl();
|
||||
|
||||
Reference in New Issue
Block a user