class MyFlexSizerFrame : public wxFrame
{
public:
- MyFlexSizerFrame(const wxString &title, int x, int y );
+ MyFlexSizerFrame(wxFrame* parent);
private:
void InitFlexSizer(wxFlexGridSizer *sizer, wxWindow* parent);
class MyGridBagSizerFrame : public wxFrame
{
public:
- MyGridBagSizerFrame(const wxString &title, int x, int y );
+ MyGridBagSizerFrame(wxFrame* parent);
void OnHideBtn(wxCommandEvent&);
void OnShowBtn(wxCommandEvent&);
class MySimpleSizerFrame : public wxFrame
{
public:
- MySimpleSizerFrame(const wxString &title, int x, int y );
-
+ MySimpleSizerFrame(wxFrame* parent);
+
void OnSetSmallSize( wxCommandEvent &event);
void OnSetBigSize( wxCommandEvent &event);
-
+
private:
wxTextCtrl *m_target;
class MyNestedSizerFrame : public wxFrame
{
public:
- MyNestedSizerFrame(const wxString &title, int x, int y );
-
-
+ MyNestedSizerFrame(wxFrame* parent);
+
+
private:
wxTextCtrl *m_target;
};
class MyWrapSizerFrame: public wxFrame
{
public:
- MyWrapSizerFrame(const wxString &title, int x, int y );
+ MyWrapSizerFrame(wxFrame* parent);
+
+private:
+ void OnAddCheckbox(wxCommandEvent& event);
+ void OnRemoveCheckbox(wxCommandEvent& event);
+
+ void DoAddCheckbox();
+
+ wxWindow* m_checkboxParent;
+ wxSizer* m_wrapSizer;
+
+ DECLARE_EVENT_TABLE()
};
// controls and menu constants