]> git.saurik.com Git - wxWidgets.git/blob - samples/wxtest/test_wdr.cpp
os2 distribution response file
[wxWidgets.git] / samples / wxtest / test_wdr.cpp
1 //------------------------------------------------------------------------------
2 // Source code generated by wxDesigner from file: test.wdr
3 // Do not modify this file, all changes will be lost!
4 //------------------------------------------------------------------------------
5
6 #ifdef __GNUG__
7 #pragma implementation "test_wdr.cpp"
8 #endif
9
10 // For compilers that support precompilation
11 #include "wx/wxprec.h"
12
13 #ifdef __BORLANDC__
14 #pragma hdrstop
15 #endif
16
17 // Include private header
18 #include "test_wdr.h"
19
20
21 // Implement window functions
22
23 wxSizer *MyDialogFunc( wxWindow *parent, bool call_fit, bool set_sizer )
24 {
25 wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
26
27 wxStaticBox *item2 = new wxStaticBox( parent, -1, "Text" );
28 wxStaticBoxSizer *item1 = new wxStaticBoxSizer( item2, wxVERTICAL );
29
30 wxBoxSizer *item3 = new wxBoxSizer( wxHORIZONTAL );
31
32 wxTextCtrl *item4 = new wxTextCtrl( parent, ID_TEXTCTRL, "", wxDefaultPosition, wxSize(80,-1), 0 );
33 item3->Add( item4, 0, wxALIGN_CENTRE|wxALL, 5 );
34
35 item1->Add( item3, 0, wxALIGN_CENTRE|wxALL, 5 );
36
37 item0->Add( item1, 0, wxALIGN_CENTRE|wxALL, 5 );
38
39 if (set_sizer)
40 {
41 parent->SetAutoLayout( TRUE );
42 parent->SetSizer( item0 );
43 if (call_fit)
44 {
45 item0->Fit( parent );
46 item0->SetSizeHints( parent );
47 }
48 }
49
50 return item0;
51 }
52
53 // Implement menubar functions
54
55 wxMenuBar *MyMenuBarFunc()
56 {
57 wxMenuBar *item0 = new wxMenuBar;
58
59 wxMenu* item1 = new wxMenu;
60 item1->Append( ID_ABOUT, "About...\tF1", "" );
61 item1->Append( ID_TEST, "Test...\tF2", "" );
62 item1->Append( ID_QUIT, "Quit\tCtrl-Q", "" );
63 item0->Append( item1, "File" );
64
65 return item0;
66 }
67
68 // Implement toolbar functions
69
70 // Implement bitmap functions
71
72
73 // End of generated file