X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c1ad00573fc825322af8e5174c52a10a17385c9..50ccc908dc4e6376de91edd7f74018898fd690b1:/include/wx/containr.h diff --git a/include/wx/containr.h b/include/wx/containr.h index 41a8bbe336..710078dc0c 100644 --- a/include/wx/containr.h +++ b/include/wx/containr.h @@ -70,10 +70,9 @@ public: // wxListCtrl) and so should get focus for ourselves bool AcceptsFocusRecursively() const { return true; } - // call this when the number of children of the window changes - // - // note that we have any children, this panel (used just as container for - // them) shouldn't get focus for itself + // Call this when the number of children of the window changes. + // If we have any children, this panel (used just as container for + // them) shouldn't get focus for itself. void UpdateCanFocus() { SetCanFocus(!HasAnyFocusableChildren()); } protected: @@ -177,7 +176,7 @@ protected: \ void classname::SetFocusIgnoringChildren() \ { \ - SetFocus(); \ + basename::SetFocus(); \ } #else // !wxHAS_NATIVE_TAB_TRAVERSAL @@ -255,6 +254,7 @@ public: \ void classname::OnChildFocus(wxChildFocusEvent& event) \ { \ m_container.SetLastFocus(event.GetWindow()); \ + event.Skip(); \ } \ \ void classname::OnFocus(wxFocusEvent& event) \