- MyTextWindow(wxFrame *frame, int x=-1, int y=-1, int width=-1, int height=-1,
- long style=wxTE_MULTILINE):
- wxTextCtrl(frame, -1, _T(""), wxPoint(x, y), wxSize(width, height), style)
- {
- }
+ MyProportionsFrame(wxFrame *parent);
+
+protected:
+ void UpdateProportions();
+
+ void OnProportionChanged(wxSpinEvent& event);
+ void OnProportionUpdated(wxCommandEvent& event);
+
+ wxSpinCtrl *m_spins[3]; // size can be changed without changing anything else
+ wxSizer *m_sizer;
+};
+
+// a frame using flex sizers for layout
+class MyFlexSizerFrame : public wxFrame
+{
+public:
+ MyFlexSizerFrame(wxFrame* parent);
+
+private:
+ void InitFlexSizer(wxFlexGridSizer *sizer, wxWindow* parent);
+};
+
+
+// a dialog using notebook sizer for layout
+class MySizerDialog : public wxDialog
+{
+public:
+ MySizerDialog(wxWindow *parent, const wxString &title );
+};
+
+
+// a frame using wxGridBagSizer for layout
+class MyGridBagSizerFrame : public wxFrame
+{
+public:
+ MyGridBagSizerFrame(wxFrame* parent);
+
+ void OnHideBtn(wxCommandEvent&);
+ void OnShowBtn(wxCommandEvent&);
+ void OnMoveBtn(wxCommandEvent&);