+// a frame showing the box sizer proportions
+class MyProportionsFrame : public wxFrame
+{
+public:
+ 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;
+};
+