]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/button.cpp
remove extraneous commas and semicolons (patch 1537792)
[wxWidgets.git] / samples / widgets / button.cpp
index 7c4dd08266772b523ebb9e58cb85ec108d818678..c06a28bf6929a29a8423549ee6922fd5de410c45 100644 (file)
@@ -85,6 +85,9 @@ public:
     virtual wxControl *GetWidget() const { return m_button; }
     virtual void RecreateWidget() { CreateButton(); }
 
+    // lazy creation of the content
+    virtual void CreateContent();
+
 protected:
     // event handlers
     void OnCheckOrRadioBox(wxCommandEvent& event);
@@ -183,7 +186,10 @@ ButtonWidgetsPage::ButtonWidgetsPage(WidgetsBookCtrl *book,
 
     m_button = (wxButton *)NULL;
     m_sizerButton = (wxSizer *)NULL;
+}
 
+void ButtonWidgetsPage::CreateContent()
+{
     wxSizer *sizerTop = new wxBoxSizer(wxHORIZONTAL);
 
     // left pane