X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..cffadd8447201d0e2e1b3de6f8a24b967da9140c:/samples/widgets/widgets.h?ds=sidebyside diff --git a/samples/widgets/widgets.h b/samples/widgets/widgets.h index 229a9337de..d05402ecd2 100644 --- a/samples/widgets/widgets.h +++ b/samples/widgets/widgets.h @@ -17,7 +17,9 @@ class WXDLLEXPORT wxNotebook; class WXDLLEXPORT wxSizer; class WXDLLEXPORT wxTextCtrl; -class WXDLLEXPORT WidgetsPageInfo; +class WidgetsPageInfo; + +#include "wx/panel.h" // all source files use wxImageList #include "wx/imaglist.h" @@ -38,24 +40,24 @@ protected: // (pointer to which will be saved in the provided variable if not NULL) // with the specified id wxSizer *CreateSizerWithText(wxControl *control, - wxWindowID id = -1, + wxWindowID id = wxID_ANY, wxTextCtrl **ppText = NULL); // create a sizer containing a label and a text ctrl wxSizer *CreateSizerWithTextAndLabel(const wxString& label, - wxWindowID id = -1, + wxWindowID id = wxID_ANY, wxTextCtrl **ppText = NULL); // create a sizer containing a button and a text ctrl wxSizer *CreateSizerWithTextAndButton(wxWindowID idBtn, const wxString& labelBtn, - wxWindowID id = -1, + wxWindowID id = wxID_ANY, wxTextCtrl **ppText = NULL); // create a checkbox and add it to the sizer wxCheckBox *CreateCheckBoxAndAddToSizer(wxSizer *sizer, const wxString& label, - wxWindowID id = -1); + wxWindowID id = wxID_ANY); public: // the head of the linked list containinginfo about all pages @@ -66,7 +68,7 @@ public: // dynamic WidgetsPage creation helpers // ---------------------------------------------------------------------------- -class WXDLLEXPORT WidgetsPageInfo +class WidgetsPageInfo { public: typedef WidgetsPage *(*Constructor)(wxNotebook *notebook,