]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/containr.h
PyCrust updates
[wxWidgets.git] / include / wx / containr.h
index 3e84da9384f1298e39b02b0ed9da4dd76a30bce4..7139ef424272c900d4cc4498f387c6a32adb9ae7 100644 (file)
@@ -39,14 +39,14 @@ class WXDLLEXPORT wxControlContainer
 {
 public:
     // ctors and such
-    wxControlContainer(wxWindow *winParent);
+    wxControlContainer(wxWindow *winParent = NULL);
+    void SetContainerWindow(wxWindow *winParent) { m_winParent = winParent; }
 
+    // default item access
     wxWindow *GetDefaultItem() const { return m_winDefault; }
     wxWindow *SetDefaultItem(wxWindow *win)
         { wxWindow *winOld = m_winDefault; m_winDefault = win; return winOld; }
 
-    void SetLastFocus(wxWindow *win);
-
     // the methods to be called from the window event handlers
     void HandleOnNavigationKey(wxNavigationKeyEvent& event);
     void HandleOnFocus(wxFocusEvent& event);
@@ -56,6 +56,10 @@ public:
     // the focus and the default processing should take place
     bool DoSetFocus();
 
+    // called from OnChildFocus() handler, i.e. when one of our (grand)
+    // children gets the focus
+    void SetLastFocus(wxWindow *win);
+
 protected:
     // set the focus to the child which had it the last time
     bool SetFocusToChild();