compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1543 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-12-07 21:15:15 +00:00
parent aba1ea3470
commit d5f8d29363
+2 -2
View File
@@ -97,7 +97,7 @@ void FilterCtrl::setFilter(const String& new_value, bool event) {
// send event
if (event) {
wxCommandEvent ev(wxEVT_COMMAND_TEXT_UPDATED, GetId());
GetParent()->ProcessEvent(ev);
GetParent()->HandleWindowEvent(ev);
}
}
@@ -163,7 +163,7 @@ BEGIN_EVENT_TABLE(FilterCtrl, wxControl)
END_EVENT_TABLE()
void TextCtrlWithFocus::forwardEvent(wxFocusEvent& ev) {
GetParent()->ProcessEvent(ev);
GetParent()->HandleWindowEvent(ev);
}
BEGIN_EVENT_TABLE(TextCtrlWithFocus, wxTextCtrl)