mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user