]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/toolbook.h
avoid infinite recursion for richtooltops, (hopefully) fixes #15070
[wxWidgets.git] / interface / wx / toolbook.h
index ea4e48be83f9edfc5e9cb441a23df1ecff6b5228..630f8eca543cac8c4d07dffc622c472369c1614d 100644 (file)
@@ -3,9 +3,16 @@
 // Purpose:     interface of wxToolbook
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
 // Purpose:     interface of wxToolbook
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 /////////////////////////////////////////////////////////////////////////////
 
+#define wxTBK_BUTTONBAR            0x0100
+#define wxTBK_HORZ_LAYOUT          0x8000
+
+wxEventType wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED;
+wxEventType wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING;
+
+
 /**
     @class wxToolbook
 
 /**
     @class wxToolbook
 
@@ -41,7 +48,7 @@
     @endEventTable
 
     @library{wxcore}
     @endEventTable
 
     @library{wxcore}
-    @category{miscwnd}
+    @category{bookctrl}
 
     @see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
          @ref page_samples_notebook
 
     @see @ref overview_bookctrl, wxBookCtrlBase, wxNotebook,
          @ref page_samples_notebook
@@ -58,9 +65,20 @@ public:
                  const wxPoint& pos = wxDefaultPosition,
                  const wxSize& size = wxDefaultSize,
                  long style = 0,
                  const wxPoint& pos = wxDefaultPosition,
                  const wxSize& size = wxDefaultSize,
                  long style = 0,
-                 const wxString& name = wxEmptyStr);
+                 const wxString& name = wxEmptyString);
     //@}
 
     //@}
 
+    /**
+       Create the tool book control that has already been constructed with
+       the default constructor.
+    */
+    bool Create(wxWindow *parent,
+                wxWindowID id,
+                const wxPoint& pos = wxDefaultPosition,
+                const wxSize& size = wxDefaultSize,
+                long style = 0,
+                const wxString& name = wxEmptyString);
+
     /**
         Returns the wxToolBarBase associated with the control.
     */
     /**
         Returns the wxToolBarBase associated with the control.
     */