]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/applet/dialogs_wdr.cpp
glibc's vswprintf doesn't nul terminate on truncation.
[wxWidgets.git] / contrib / 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 // For compilers that support precompilation
7 #include "wx/wxprec.h"
8
9 #ifdef __BORLANDC__
10 #pragma hdrstop
11 #endif
12
13 // Include private header
14 #include "dialogs_wdr.h"
15
16
17 // Implement window functions
18
19 wxSizer *MonitorDialogFunc( wxPanel *parent, bool call_fit, bool set_sizer )
20 {
21 wxSizer *item0 = new wxBoxSizer( wxVERTICAL );
22
23 wxSizer *item1 = new wxFlexGridSizer( 2, 0, 0 );
24
25 wxSizer *item2 = new wxBoxSizer( wxHORIZONTAL );
26
27 wxStaticText *item3 = new wxStaticText( parent, ID_TEXT_MANUFACTURER, "Manufacturer:", wxDefaultPosition, wxSize(180,-1), 0 );
28 item3->SetForegroundColour( *wxBLACK );
29 item3->SetBackgroundColour( *wxWHITE );
30 item2->Add( item3, 0, wxALIGN_CENTRE, 5 );
31
32 item2->Add( 10, 20, 0, wxALIGN_CENTRE, 5 );
33
34 item1->Add( item2, 0, wxALIGN_CENTER_VERTICAL, 5 );
35
36 wxSizer *item4 = new wxBoxSizer( wxHORIZONTAL );
37
38 wxStaticText *item5 = new wxStaticText( parent, ID_TEXT_MODEL, "Model:", wxDefaultPosition, wxSize(250,-1), 0 );
39 item5->SetForegroundColour( *wxBLACK );
40 item5->SetBackgroundColour( *wxWHITE );
41 item4->Add( item5, 0, wxALIGN_CENTRE, 5 );
42
43 item1->Add( item4, 0, wxALIGN_CENTER_VERTICAL, 5 );
44
45 wxSizer *item6 = new wxBoxSizer( wxHORIZONTAL );
46
47 wxTextCtrl *item7 = new wxTextCtrl( parent, ID_TEXTCTRL_MFTR, "", wxDefaultPosition, wxSize(190,-1), wxTE_READONLY );
48 item7->SetForegroundColour( *wxBLACK );
49 item7->SetBackgroundColour( *wxWHITE );
50 item6->Add( item7, 0, wxALIGN_CENTRE, 5 );
51
52 item6->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
53
54 item1->Add( item6, 0, wxALIGN_CENTRE, 5 );
55
56 wxSizer *item8 = new wxBoxSizer( wxHORIZONTAL );
57
58 wxTextCtrl *item9 = new wxTextCtrl( parent, ID_TEXTCTRL_MDL, "", wxDefaultPosition, wxSize(260,-1), wxTE_READONLY );
59 item8->Add( item9, 0, wxALIGN_CENTRE, 5 );
60
61 item1->Add( item8, 0, wxALIGN_CENTRE, 5 );
62
63 wxSizer *item10 = new wxBoxSizer( wxHORIZONTAL );
64
65 wxString *strs11 = (wxString*) NULL;
66 wxListBox *item11 = new wxListBox( parent, ID_LISTBOX_MFTR, wxDefaultPosition, wxSize(190,150), 0, strs11, wxLB_SORT|wxLB_ALWAYS_SB );
67 item10->Add( item11, 0, wxALIGN_CENTRE, 5 );
68
69 item10->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
70
71 item1->Add( item10, 0, wxALIGN_CENTRE, 5 );
72
73 wxSizer *item12 = new wxBoxSizer( wxHORIZONTAL );
74
75 wxString *strs13 = (wxString*) NULL;
76 wxListBox *item13 = new wxListBox( parent, ID_LISTBOX_MDL, wxDefaultPosition, wxSize(260,150), 0, strs13, wxLB_SORT|wxLB_NEEDED_SB );
77 item13->SetForegroundColour( *wxBLACK );
78 item13->SetBackgroundColour( *wxWHITE );
79 item12->Add( item13, 0, wxALIGN_CENTRE, 5 );
80
81 item1->Add( item12, 0, wxALIGN_CENTRE, 5 );
82
83 item0->Add( item1, 0, wxALIGN_CENTRE, 15 );
84
85 if (set_sizer)
86 {
87 parent->SetAutoLayout( TRUE );
88 parent->SetSizer( item0 );
89 if (call_fit)
90 {
91 item0->Fit( parent );
92 item0->SetSizeHints( parent );
93 }
94 }
95
96 return item0;
97 }
98
99 // Implement bitmap functions
100
101
102 // End of generated file