From: Robin Dunn Date: Tue, 14 Dec 2004 19:57:58 +0000 (+0000) Subject: Added SetFocus and SetFocusIgnoringChildren to wx.Panel X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ed8d127eb08398f3ed7865c2aa6adda3f49a7be4 Added SetFocus and SetFocusIgnoringChildren to wx.Panel git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_panel.i b/wxPython/src/_panel.i index a78146d4f0..02a33ca155 100644 --- a/wxPython/src/_panel.i +++ b/wxPython/src/_panel.i @@ -51,6 +51,25 @@ public: void InitDialog(); + + DocDeclStr( + virtual void , SetFocus(), + "Overrides `wx.Window.SetFocus`. This method +uses the (undocumented) mix-in class wxControlContainer which manages +the focus and TAB logic for controls which usually have child controls. +In practice, if you call this method and the panel has at least +one child window, then the focus will be given to the child window. +", " +:see: `wx.FocusEvent`, `wx.Window.SetFocus`, `SetFocusIgnoringChildren`"); + + + DocDeclStr( + virtual void , SetFocusIgnoringChildren(), + "In contrast to `SetFocus` (see above) this will set the focus to the +panel even of there are child windows in the panel. This is only +rarely needed.", ""); + + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); };