X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00621a0d176dcaf22414b89e766fa124eea80763..48ed4a8971d9ba09cc3d5eba09d22c7cf4095644:/samples/richtext/richtext.cpp diff --git a/samples/richtext/richtext.cpp b/samples/richtext/richtext.cpp index c13f182983..d41e8e90f9 100644 --- a/samples/richtext/richtext.cpp +++ b/samples/richtext/richtext.cpp @@ -181,6 +181,8 @@ public: void OnPreview(wxCommandEvent& event); void OnPageSetup(wxCommandEvent& event); +protected: + // Forward command events to the current rich text control, if any bool ProcessEvent(wxEvent& event); @@ -958,7 +960,7 @@ bool MyFrame::ProcessEvent(wxEvent& event) s_id = event.GetId(); wxWindow* focusWin = wxFindFocusDescendant(this); - if (focusWin && focusWin->ProcessEvent(event)) + if (focusWin && focusWin->GetEventHandler()->ProcessEvent(event)) { //s_command = NULL; s_eventType = 0;