]>
git.saurik.com Git - wxWidgets.git/blob - samples/layout/layout.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Layout sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
20 // the main frame class
21 class MyFrame
: public wxFrame
26 void TestConstraints(wxCommandEvent
& event
);
27 void TestFlexSizers(wxCommandEvent
& event
);
28 void TestNotebookSizers(wxCommandEvent
& event
);
30 void OnAbout(wxCommandEvent
& event
);
31 void OnQuit(wxCommandEvent
& event
);
37 // a frame using constraints for layout
38 class MyConstraintsFrame
: public wxFrame
41 MyConstraintsFrame(const wxChar
*title
, int x
, int y
);
44 // a frame using flex sizers for layout
45 class MyFlexSizerFrame
: public wxFrame
48 MyFlexSizerFrame(const wxChar
*title
, int x
, int y
);
51 void InitFlexSizer(wxFlexGridSizer
*sizer
);
54 // a dialog using notebook sizer for layout
55 class MySizerDialog
: public wxDialog
58 MySizerDialog(wxWindow
*parent
, const wxChar
*title
);
61 // controls an menu constants
66 LAYOUT_TEST_CONSTRAINTS
,