2002-04-26 15:38:48 -04:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// Source code generated by wxDesigner from file: test.wdr
|
|
|
|
// Do not modify this file, all changes will be lost!
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation "test_wdr.cpp"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// For compilers that support precompilation
|
|
|
|
#include "wx/wxprec.h"
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
#pragma hdrstop
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Include private header
|
|
|
|
#include "test_wdr.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Implement window functions
|
|
|
|
|
|
|
|
wxSizer *MyDialogFunc( wxWindow *parent, bool call_fit, bool set_sizer )
|
|
|
|
{
|
|
|
|
wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2003-09-09 16:24:34 -04:00
|
|
|
wxStaticBox *item2 = new wxStaticBox( parent, -1, _T("Text") );
|
2002-04-26 15:38:48 -04:00
|
|
|
wxStaticBoxSizer *item1 = new wxStaticBoxSizer( item2, wxVERTICAL );
|
|
|
|
|
|
|
|
wxBoxSizer *item3 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2003-09-09 16:24:34 -04:00
|
|
|
wxTextCtrl *item4 = new wxTextCtrl( parent, ID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxSize(80,-1), 0 );
|
2002-04-26 15:38:48 -04:00
|
|
|
item3->Add( item4, 0, wxALIGN_CENTRE|wxALL, 5 );
|
|
|
|
|
|
|
|
item1->Add( item3, 0, wxALIGN_CENTRE|wxALL, 5 );
|
|
|
|
|
|
|
|
item0->Add( item1, 0, wxALIGN_CENTRE|wxALL, 5 );
|
|
|
|
|
|
|
|
if (set_sizer)
|
|
|
|
{
|
|
|
|
parent->SetAutoLayout( TRUE );
|
|
|
|
parent->SetSizer( item0 );
|
|
|
|
if (call_fit)
|
|
|
|
{
|
|
|
|
item0->Fit( parent );
|
|
|
|
item0->SetSizeHints( parent );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return item0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Implement menubar functions
|
|
|
|
|
|
|
|
wxMenuBar *MyMenuBarFunc()
|
|
|
|
{
|
|
|
|
wxMenuBar *item0 = new wxMenuBar;
|
|
|
|
|
|
|
|
wxMenu* item1 = new wxMenu;
|
2003-09-09 16:24:34 -04:00
|
|
|
item1->Append( ID_ABOUT, _T("About...\tF1"), wxEmptyString );
|
|
|
|
item1->Append( ID_TEST, _T("Test...\tF2"), wxEmptyString );
|
|
|
|
item1->Append( ID_QUIT, _T("Quit\tCtrl-Q"), wxEmptyString );
|
|
|
|
item0->Append( item1, _T("File") );
|
2002-04-26 15:38:48 -04:00
|
|
|
|
|
|
|
return item0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Implement toolbar functions
|
|
|
|
|
|
|
|
// Implement bitmap functions
|
|
|
|
|
|
|
|
|
|
|
|
// End of generated file
|