]>
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 and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 // Define a new application
13 class MyApp
: public wxApp
24 class MyFrame
: public wxFrame
27 MyFrame(wxFrame
*frame
, const wxChar
*title
, int x
, int y
, int w
, int h
);
29 void OnQuit(wxCommandEvent
& event
);
31 void TestSizers(wxCommandEvent
& event
);
32 void TestNotebookSizers(wxCommandEvent
& event
);
33 void About(wxCommandEvent
& event
);
39 // Define a new text subwindow that can respond to drag-and-drop
40 class MyTextWindow
: public wxTextCtrl
43 MyTextWindow(wxFrame
*frame
, int x
=-1, int y
=-1, int width
=-1, int height
=-1,
44 long style
=wxTE_MULTILINE
):
45 wxTextCtrl(frame
, -1, _T(""), wxPoint(x
, y
), wxSize(width
, height
), style
)
51 // Define a new canvas which can receive some events
52 class MyWindow
: public wxWindow
55 MyWindow(wxFrame
*frame
, int x
, int y
, int w
, int h
, long style
= wxRETAINED
);
57 void OnPaint(wxPaintEvent
& event
);
63 class MySizerFrame
: public wxFrame
67 MySizerFrame(wxFrame
*frame
, wxChar
*title
, int x
, int y
);
70 #define LAYOUT_QUIT 100
71 #define LAYOUT_TEST 101
72 #define LAYOUT_ABOUT 102
73 #define LAYOUT_TEST_SIZER 104
74 #define LAYOUT_TEST_NB 105