Always make wxWindow::SetFocus() focus the window, overriding SetCanFocus, some more focus related docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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() \
|
||||
{ \
|
||||
basename::SetFocusIgnoringChildren(); \
|
||||
basename::SetFocus(); \
|
||||
}
|
||||
|
||||
#else // !wxHAS_NATIVE_TAB_TRAVERSAL
|
||||
|
Reference in New Issue
Block a user