]> git.saurik.com Git - wxWidgets.git/blame - samples/wxtest/test_wdr.cpp
(should) fix unix compilation...
[wxWidgets.git] / samples / wxtest / test_wdr.cpp
CommitLineData
c5e4ef4e
RR
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
23wxSizer *MyDialogFunc( wxWindow *parent, bool call_fit, bool set_sizer )
24{
25 wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
26
87728739 27 wxStaticBox *item2 = new wxStaticBox( parent, -1, _T("Text") );
c5e4ef4e
RR
28 wxStaticBoxSizer *item1 = new wxStaticBoxSizer( item2, wxVERTICAL );
29
30 wxBoxSizer *item3 = new wxBoxSizer( wxHORIZONTAL );
31
87728739 32 wxTextCtrl *item4 = new wxTextCtrl( parent, ID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxSize(80,-1), 0 );
c5e4ef4e
RR
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
55wxMenuBar *MyMenuBarFunc()
56{
57 wxMenuBar *item0 = new wxMenuBar;
58
59 wxMenu* item1 = new wxMenu;
87728739
MB
60 item1->Append( ID_ABOUT, _T("About...\tF1"), wxEmptyString );
61 item1->Append( ID_TEST, _T("Test...\tF2"), wxEmptyString );
62 item1->Append( ID_QUIT, _T("Quit\tCtrl-Q"), wxEmptyString );
63 item0->Append( item1, _T("File") );
c5e4ef4e
RR
64
65 return item0;
66}
67
68// Implement toolbar functions
69
70// Implement bitmap functions
71
72
73// End of generated file