+
+// a frame using wxGridBagSizer for layout
+class MyGridBagSizerFrame : public wxFrame
+{
+public:
+ MyGridBagSizerFrame(const wxChar *title, int x, int y );
+
+ void OnHideBtn(wxCommandEvent&);
+ void OnShowBtn(wxCommandEvent&);
+ void OnMoveBtn(wxCommandEvent&);
+
+private:
+ wxGridBagSizer* m_gbs;
+ wxPanel* m_panel;
+ wxButton* m_hideBtn;
+ wxButton* m_showBtn;
+ wxTextCtrl* m_hideTxt;
+
+ wxButton* m_moveBtn1;
+ wxButton* m_moveBtn2;
+ wxGBPosition m_lastPos;
+
+ DECLARE_EVENT_TABLE()
+};
+
+
+
+
+
+// controls and menu constants