]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/widgets.h
i18n files are installed as part of wxBase (and should be ideally part of separate...
[wxWidgets.git] / samples / widgets / widgets.h
index ca2a8e7cca83e89bd529bc22102d3cd0f18c84c4..da451951f9268b7255e09ba9e12a1ddfcfa8b6df 100644 (file)
     #define WidgetsBookCtrl wxTreebook
     #define WidgetsBookCtrlEvent wxTreebookEvent
     #define EVT_WIDGETS_PAGE_CHANGED(id,func) EVT_TREEBOOK_PAGE_CHANGED(id,func)
-    #define WidgetBookStyle (wxBK_DEFAULT)
 #else
     #include "wx/bookctrl.h"
     #define USE_TREEBOOK 0
     #define WidgetsBookCtrl wxBookCtrl
     #define WidgetsBookCtrlEvent wxBookCtrlEvent
     #define EVT_WIDGETS_PAGE_CHANGED(id,func) EVT_BOOKCTRL_PAGE_CHANGED(id,func)
-    #ifdef __POCKETPC__
-        #define WidgetBookStyle (wxBK_BOTTOM|wxNB_FLAT)
-    #else
-        #define WidgetBookStyle (wxBK_DEFAULT)
-    #endif
 #endif
 
 #if wxUSE_LOG && !defined(__WXHANDHELD__)
@@ -98,6 +92,9 @@ public:
     // return the control shown by this page
     virtual wxControl *GetWidget() const = 0;
 
+    // lazy creation of the content
+    virtual void CreateContent() = 0;
+
     // some pages show 2 controls, in this case override this one as well
     virtual wxControl *GetWidget2() const { return NULL; }