]> git.saurik.com Git - wxWidgets.git/blob - samples/applet/dialogs_wdr.cpp
OS/2 fix in setdrive.
[wxWidgets.git] / samples / applet / dialogs_wdr.cpp
1 //------------------------------------------------------------------------------
2 // Source code generated by wxDesigner from file: dialogs.wdr
3 // Do not modify this file, all changes will be lost!
4 //------------------------------------------------------------------------------
5
6 #ifdef __GNUG__
7 #pragma implementation "dialogs_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 "dialogs_wdr.h"
19
20
21 // Implement window functions
22
23 wxSizer *MonitorDialogFunc( wxPanel *parent, bool call_fit, bool set_sizer )
24 {
25 wxSizer *item0 = new wxBoxSizer( wxVERTICAL );
26
27 wxSizer *item1 = new wxFlexGridSizer( 2, 0, 0 );
28
29 wxSizer *item2 = new wxBoxSizer( wxHORIZONTAL );
30
31 wxStaticText *item3 = new wxStaticText( parent, ID_TEXT_MANUFACTURER, "Manufacturer:", wxDefaultPosition, wxSize(180,-1), 0 );
32 item3->SetForegroundColour( *wxBLACK );
33 item3->SetBackgroundColour( *wxWHITE );
34 item2->Add( item3, 0, wxALIGN_CENTRE, 5 );
35
36 item2->Add( 10, 20, 0, wxALIGN_CENTRE, 5 );
37
38 item1->Add( item2, 0, wxALIGN_CENTER_VERTICAL, 5 );
39
40 wxSizer *item4 = new wxBoxSizer( wxHORIZONTAL );
41
42 wxStaticText *item5 = new wxStaticText( parent, ID_TEXT_MODEL, "Model:", wxDefaultPosition, wxSize(250,-1), 0 );
43 item5->SetForegroundColour( *wxBLACK );
44 item5->SetBackgroundColour( *wxWHITE );
45 item4->Add( item5, 0, wxALIGN_CENTRE, 5 );
46
47 item1->Add( item4, 0, wxALIGN_CENTER_VERTICAL, 5 );
48
49 wxSizer *item6 = new wxBoxSizer( wxHORIZONTAL );
50
51 wxTextCtrl *item7 = new wxTextCtrl( parent, ID_TEXTCTRL_MFTR, "", wxDefaultPosition, wxSize(190,-1), wxTE_READONLY );
52 item7->SetForegroundColour( *wxBLACK );
53 item7->SetBackgroundColour( *wxWHITE );
54 item6->Add( item7, 0, wxALIGN_CENTRE, 5 );
55
56 item6->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
57
58 item1->Add( item6, 0, wxALIGN_CENTRE, 5 );
59
60 wxSizer *item8 = new wxBoxSizer( wxHORIZONTAL );
61
62 wxTextCtrl *item9 = new wxTextCtrl( parent, ID_TEXTCTRL_MDL, "", wxDefaultPosition, wxSize(260,-1), wxTE_READONLY );
63 item8->Add( item9, 0, wxALIGN_CENTRE, 5 );
64
65 item1->Add( item8, 0, wxALIGN_CENTRE, 5 );
66
67 wxSizer *item10 = new wxBoxSizer( wxHORIZONTAL );
68
69 wxString *strs11 = (wxString*) NULL;
70 wxListBox *item11 = new wxListBox( parent, ID_LISTBOX_MFTR, wxDefaultPosition, wxSize(190,150), 0, strs11, wxLB_SORT|wxLB_ALWAYS_SB );
71 item10->Add( item11, 0, wxALIGN_CENTRE, 5 );
72
73 item10->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
74
75 item1->Add( item10, 0, wxALIGN_CENTRE, 5 );
76
77 wxSizer *item12 = new wxBoxSizer( wxHORIZONTAL );
78
79 wxString *strs13 = (wxString*) NULL;
80 wxListBox *item13 = new wxListBox( parent, ID_LISTBOX_MDL, wxDefaultPosition, wxSize(260,150), 0, strs13, wxLB_SORT|wxLB_NEEDED_SB );
81 item13->SetForegroundColour( *wxBLACK );
82 item13->SetBackgroundColour( *wxWHITE );
83 item12->Add( item13, 0, wxALIGN_CENTRE, 5 );
84
85 item1->Add( item12, 0, wxALIGN_CENTRE, 5 );
86
87 item0->Add( item1, 0, wxALIGN_CENTRE, 15 );
88
89 if (set_sizer)
90 {
91 parent->SetAutoLayout( TRUE );
92 parent->SetSizer( item0 );
93 if (call_fit)
94 {
95 item0->Fit( parent );
96 item0->SetSizeHints( parent );
97 }
98 }
99
100 return item0;
101 }
102
103 // Implement bitmap functions
104
105
106 // End of generated file