]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/listbook.h
update minimum GTK2 version requirement to 2.6
[wxWidgets.git] / interface / wx / listbook.h
index 50906f2a42332b275b2e1fb48cf41a32e03bfa2a..e0d23fd9ed965110bc2b4fca9d2cdd4317aa7d11 100644 (file)
@@ -3,9 +3,20 @@
 // Purpose:     interface of wxListbook
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
+// wxListbook flags
+#define wxLB_DEFAULT          wxBK_DEFAULT
+#define wxLB_TOP              wxBK_TOP
+#define wxLB_BOTTOM           wxBK_BOTTOM
+#define wxLB_LEFT             wxBK_LEFT
+#define wxLB_RIGHT            wxBK_RIGHT
+#define wxLB_ALIGN_MASK       wxBK_ALIGN_MASK
+
+wxEventType wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED;
+wxEventType wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING;
+
 /**
     @class wxListbook
 
@@ -34,7 +45,7 @@
            Place labels below the page area.
     @endStyleTable
 
-    @beginEventTable{wxBookCtrlEvent}
+    @beginEventEmissionTable{wxBookCtrlEvent}
     @event{EVT_LISTBOOK_PAGE_CHANGED(id, func)}
         The page selection was changed.
         Processes a @c wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED event.
     @endEventTable
 
     @library{wxcore}
-    @category{miscwnd}
+    @category{bookctrl}
+    @appearance{listbook.png}
 
-    @see wxBookCtrl(), wxNotebook, @ref page_samples_notebook
+    @see wxBookCtrl, wxNotebook, @ref page_samples_notebook
 */
 class wxListbook : public wxBookCtrlBase
 {
@@ -64,7 +76,18 @@ public:
                const wxPoint& pos = wxDefaultPosition,
                const wxSize& size = wxDefaultSize,
                long style = 0,
-               const wxString& name = wxEmptyStr);
+               const wxString& name = wxEmptyString);
+
+    /**
+       Create the list 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 wxListView associated with the control.