Compilation fix for non-MSW: don't use ProcessCommand().
wxControl::ProcessCommand() is MSW-only, use HandleWindowEvent() to fix compilation under Unix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ddbc8ac9ca
commit
65702d2fe9
@ -1874,7 +1874,7 @@ void wxComboCtrlBase::OnButtonClick()
|
|||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_DROPDOWN, GetId());
|
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_DROPDOWN, GetId());
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
ProcessCommand(event);
|
HandleWindowEvent(event);
|
||||||
|
|
||||||
ShowPopup();
|
ShowPopup();
|
||||||
}
|
}
|
||||||
@ -2157,7 +2157,7 @@ void wxComboCtrlBase::OnPopupDismiss(bool generateEvent)
|
|||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_CLOSEUP, GetId());
|
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_CLOSEUP, GetId());
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
ProcessCommand(event);
|
HandleWindowEvent(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user