]>
git.saurik.com Git - wxWidgets.git/blob - 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 //------------------------------------------------------------------------------
7 #pragma implementation "test_wdr.cpp"
10 // For compilers that support precompilation
11 #include "wx/wxprec.h"
17 // Include private header
21 // Implement window functions
23 wxSizer
*MyDialogFunc( wxWindow
*parent
, bool call_fit
, bool set_sizer
)
25 wxBoxSizer
*item0
= new wxBoxSizer( wxVERTICAL
);
27 wxStaticBox
*item2
= new wxStaticBox( parent
, -1, _T("Text") );
28 wxStaticBoxSizer
*item1
= new wxStaticBoxSizer( item2
, wxVERTICAL
);
30 wxBoxSizer
*item3
= new wxBoxSizer( wxHORIZONTAL
);
32 wxTextCtrl
*item4
= new wxTextCtrl( parent
, ID_TEXTCTRL
, wxEmptyString
, wxDefaultPosition
, wxSize(80,-1), 0 );
33 item3
->Add( item4
, 0, wxALIGN_CENTRE
|wxALL
, 5 );
35 item1
->Add( item3
, 0, wxALIGN_CENTRE
|wxALL
, 5 );
37 item0
->Add( item1
, 0, wxALIGN_CENTRE
|wxALL
, 5 );
41 parent
->SetAutoLayout( TRUE
);
42 parent
->SetSizer( item0
);
46 item0
->SetSizeHints( parent
);
53 // Implement menubar functions
55 wxMenuBar
*MyMenuBarFunc()
57 wxMenuBar
*item0
= new wxMenuBar
;
59 wxMenu
* item1
= new wxMenu
;
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") );
68 // Implement toolbar functions
70 // Implement bitmap functions
73 // End of generated file