1 ///////////////////////////////////////////////////////////////////////////
2 // C++ code generated with wxFormBuilder (version Apr 17 2008)
3 // http://www.wxformbuilder.org/
5 // PLEASE DO "NOT" EDIT THIS FILE!
6 ///////////////////////////////////////////////////////////////////////////
8 // ----------------------------------------------------------------------------
10 // ----------------------------------------------------------------------------
12 // For compilers that support precompilation, includes "wx/wx.h".
13 #include "wx/wxprec.h"
19 // for all others, include the necessary headers (this file is usually all you
20 // need because it includes almost all "standard" wxWidgets headers)
27 ///////////////////////////////////////////////////////////////////////////
29 GUIFrame::GUIFrame( wxWindow
* parent
, wxWindowID id
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, long style
) : wxFrame( parent
, id
, title
, pos
, size
, style
)
31 this->SetSizeHints( wxDefaultSize
, wxDefaultSize
);
33 mbar
= new wxMenuBar( 0 );
34 fileMenu
= new wxMenu();
35 wxMenuItem
* m_menuSeeScr
;
36 m_menuSeeScr
= new wxMenuItem( fileMenu
, idMenuOpen
, wxString( _("See Screenshots") ) + wxT('\t') + wxT("Ctrl+O"), _("Open the directory where the screenshots generated."), wxITEM_NORMAL
);
37 fileMenu
->Append( m_menuSeeScr
);
39 wxMenuItem
* m_menuFileQuit
;
40 m_menuFileQuit
= new wxMenuItem( fileMenu
, idMenuQuit
, wxString( _("&Quit") ) + wxT('\t') + wxT("Alt+F4"), _("Quit the application"), wxITEM_NORMAL
);
41 fileMenu
->Append( m_menuFileQuit
);
43 mbar
->Append( fileMenu
, _("&File") );
45 captureMenu
= new wxMenu();
46 wxMenuItem
* m_menuCapFullScreen
;
47 m_menuCapFullScreen
= new wxMenuItem( captureMenu
, idMenuCapFullScreen
, wxString( _("&Full Screen") ) + wxT('\t') + wxT("Ctrl+Alt+F"), _("Can screenshot be taken properly?"), wxITEM_NORMAL
);
48 captureMenu
->Append( m_menuCapFullScreen
);
50 wxMenuItem
* m_menuCapRect
;
51 m_menuCapRect
= new wxMenuItem( captureMenu
, idMenuCapRect
, wxString( _("Regions<Begin>") ) + wxT('\t') + wxT("Ctrl+Alt+R"), _("Manually specify rectangular regions"), wxITEM_NORMAL
);
52 captureMenu
->Append( m_menuCapRect
);
54 wxMenuItem
* m_menuEndCapRect
;
55 m_menuEndCapRect
= new wxMenuItem( captureMenu
, idMenuEndCapRect
, wxString( _("Regions<End>") ) + wxT('\t') + wxT("Ctrl+Alt+E"), _("Stop generating screenshots..."), wxITEM_NORMAL
);
56 captureMenu
->Append( m_menuEndCapRect
);
57 m_menuEndCapRect
->Enable( false );
59 wxMenuItem
* m_menuCapAll
;
60 m_menuCapAll
= new wxMenuItem( captureMenu
, idMenuCapAll
, wxString( _("Capture All") ) + wxT('\t') + wxT("Ctrl+Alt+A"), _("Take screenshot for all controls autoly."), wxITEM_NORMAL
);
61 captureMenu
->Append( m_menuCapAll
);
63 mbar
->Append( captureMenu
, _("&Capture") );
65 helpMenu
= new wxMenu();
66 wxMenuItem
* m_menuHelpAbout
;
67 m_menuHelpAbout
= new wxMenuItem( helpMenu
, idMenuAbout
, wxString( _("&About") ) + wxT('\t') + wxT("F1"), _("Show info about this application"), wxITEM_NORMAL
);
68 helpMenu
->Append( m_menuHelpAbout
);
70 mbar
->Append( helpMenu
, _("&Help") );
72 this->SetMenuBar( mbar
);
75 bSizer0
= new wxBoxSizer( wxVERTICAL
);
77 m_notebook1
= new wxNotebook( this, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, 0 );
78 m_panel1
= new wxPanel( m_notebook1
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, wxTAB_TRAVERSAL
);
79 wxFlexGridSizer
* fgSizer1
;
80 fgSizer1
= new wxFlexGridSizer( 5, 2, 0, 0 );
81 fgSizer1
->SetFlexibleDirection( wxBOTH
);
82 fgSizer1
->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE
);
84 m_button1
= new wxButton( m_panel1
, wxID_ANY
, _("wxButton"), wxDefaultPosition
, wxDefaultSize
, 0 );
85 fgSizer1
->Add( m_button1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
87 m_staticText1
= new wxStaticText( m_panel1
, wxID_ANY
, _("wxStaticText"), wxDefaultPosition
, wxDefaultSize
, 0 );
88 m_staticText1
->Wrap( -1 );
89 fgSizer1
->Add( m_staticText1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
91 m_checkBox1
= new wxCheckBox( m_panel1
, wxID_ANY
, _("Checked"), wxDefaultPosition
, wxDefaultSize
, 0 );
92 m_checkBox1
->SetValue(true);
94 m_checkBox1
->SetToolTip( _("wxCheckBox") );
96 fgSizer1
->Add( m_checkBox1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
98 m_checkBox2
= new wxCheckBox( m_panel1
, wxID_ANY
, _("Not checked"), wxDefaultPosition
, wxDefaultSize
, 0 );
100 m_checkBox2
->SetToolTip( _("wxCheckBox") );
102 fgSizer1
->Add( m_checkBox2
, 0, wxALL
|wxALIGN_CENTER_VERTICAL
|wxALIGN_CENTER_HORIZONTAL
, 20 );
104 m_radioBtn1
= new wxRadioButton( m_panel1
, wxID_ANY
, _("Chosen"), wxDefaultPosition
, wxDefaultSize
, 0 );
105 m_radioBtn1
->SetValue( true );
106 m_radioBtn1
->SetToolTip( _("wxRadioButton") );
108 fgSizer1
->Add( m_radioBtn1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
110 m_radioBtn2
= new wxRadioButton( m_panel1
, wxID_ANY
, _("Not chosen"), wxDefaultPosition
, wxDefaultSize
, 0 );
111 m_radioBtn2
->SetToolTip( _("wxRadioButton") );
113 fgSizer1
->Add( m_radioBtn2
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
115 m_bpButton1
= new wxBitmapButton( m_panel1
, wxID_ANY
, wxBitmap( wxT("wxwin32x32.png"), wxBITMAP_TYPE_ANY
), wxDefaultPosition
, wxDefaultSize
, wxBU_AUTODRAW
);
116 m_bpButton1
->SetToolTip( _("wxBitmapButton") );
118 m_bpButton1
->SetToolTip( _("wxBitmapButton") );
120 fgSizer1
->Add( m_bpButton1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
122 m_bitmap1
= new wxStaticBitmap( m_panel1
, wxID_ANY
, wxBitmap( wxT("wxwin32x32.png"), wxBITMAP_TYPE_ANY
), wxDefaultPosition
, wxDefaultSize
, 0 );
123 m_bitmap1
->SetToolTip( _("wxStaticBitmap") );
125 fgSizer1
->Add( m_bitmap1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
127 m_gauge1
= new wxGauge( m_panel1
, wxID_ANY
, 100, wxDefaultPosition
, wxDefaultSize
, wxGA_HORIZONTAL
, wxDefaultValidator
, wxT("_Gauge") );
128 m_gauge1
->SetValue( 50 );
129 m_gauge1
->SetToolTip( _("wxGauge") );
131 fgSizer1
->Add( m_gauge1
, 1, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 20 );
133 m_slider1
= new wxSlider( m_panel1
, wxID_ANY
, 50, 0, 100, wxDefaultPosition
, wxDefaultSize
, wxSL_HORIZONTAL
);
134 m_slider1
->SetToolTip( _("wxSlider") );
136 fgSizer1
->Add( m_slider1
, 1, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 20 );
138 m_toggleBtn1
= new wxToggleButton( m_panel1
, wxID_ANY
, _("Not Toggled"), wxDefaultPosition
, wxDefaultSize
, 0 );
139 m_toggleBtn1
->SetToolTip( _("wxToggleButton") );
141 fgSizer1
->Add( m_toggleBtn1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
143 m_toggleBtn2
= new wxToggleButton( m_panel1
, wxID_ANY
, _("Toggled"), wxDefaultPosition
, wxDefaultSize
, 0 );
144 m_toggleBtn2
->SetValue( true );
145 m_toggleBtn2
->SetToolTip( _("wxToggleButton") );
147 fgSizer1
->Add( m_toggleBtn2
, 0, wxALL
|wxALIGN_CENTER_VERTICAL
|wxALIGN_CENTER_HORIZONTAL
, 20 );
149 m_hyperlink1
= new wxHyperlinkCtrl( m_panel1
, wxID_ANY
, _("www.wxWidgets.org"), wxT("http://www.wxWidgets.org"), wxDefaultPosition
, wxDefaultSize
, wxHL_DEFAULT_STYLE
);
150 m_hyperlink1
->SetToolTip( _("wxHyperlinkCtrl") );
152 fgSizer1
->Add( m_hyperlink1
, 0, wxALL
|wxALIGN_CENTER_VERTICAL
|wxALIGN_CENTER_HORIZONTAL
, 20 );
154 m_spinCtrl1
= new wxSpinCtrl( m_panel1
, wxID_ANY
, wxT("5"), wxDefaultPosition
, wxDefaultSize
, wxSP_ARROW_KEYS
, 0, 10, 0 );
155 m_spinCtrl1
->SetToolTip( _("wxSpinCtrl") );
157 fgSizer1
->Add( m_spinCtrl1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
159 m_spinBtn1
= new wxSpinButton( m_panel1
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, 0 );
160 m_spinBtn1
->SetToolTip( _("wxSpinButton") );
162 fgSizer1
->Add( m_spinBtn1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
164 m_scrollBar1
= new wxScrollBar( m_panel1
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, wxSB_HORIZONTAL
);
165 m_scrollBar1
->SetToolTip( _("wxScrollBar") );
167 fgSizer1
->Add( m_scrollBar1
, 1, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 20 );
169 m_panel1
->SetSizer( fgSizer1
);
171 fgSizer1
->Fit( m_panel1
);
172 m_notebook1
->AddPage( m_panel1
, _("Tiny Controls"), true );
173 m_panel2
= new wxPanel( m_notebook1
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, wxTAB_TRAVERSAL
);
174 wxFlexGridSizer
* fgSizer2
;
175 fgSizer2
= new wxFlexGridSizer( 5, 2, 0, 0 );
176 fgSizer2
->SetFlexibleDirection( wxBOTH
);
177 fgSizer2
->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED
);
179 wxString m_checkList1Choices
[] = { _("wxCheckListBox"), _("Item1"), _("Item2") };
180 int m_checkList1NChoices
= sizeof( m_checkList1Choices
) / sizeof( wxString
);
181 m_checkList1
= new wxCheckListBox( m_panel2
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, m_checkList1NChoices
, m_checkList1Choices
, 0 );
182 fgSizer2
->Add( m_checkList1
, 1, wxALL
|wxEXPAND
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
184 m_listBox1
= new wxListBox( m_panel2
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, 0, NULL
, 0 );
185 m_listBox1
->Append( _("wxListBox") );
186 m_listBox1
->Append( _("Item1") );
187 m_listBox1
->Append( _("Item2") );
188 fgSizer2
->Add( m_listBox1
, 1, wxALL
|wxEXPAND
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
190 wxString m_radioBox1Choices
[] = { _("Item1"), _("Item2") };
191 int m_radioBox1NChoices
= sizeof( m_radioBox1Choices
) / sizeof( wxString
);
192 m_radioBox1
= new wxRadioBox( m_panel2
, wxID_ANY
, _("wxRadioBox"), wxDefaultPosition
, wxDefaultSize
, m_radioBox1NChoices
, m_radioBox1Choices
, 1, wxRA_SPECIFY_COLS
);
193 m_radioBox1
->SetSelection( 0 );
194 fgSizer2
->Add( m_radioBox1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
196 m_staticBox1
= new wxStaticBox(m_panel2
,wxID_ANY
, _("wxStaticBox"), wxDefaultPosition
, wxDefaultSize
, 0, _("_StaticBox"));
199 fgSizer2
->Add( m_staticBox1
, 1, wxALL
|wxALIGN_CENTER_VERTICAL
|wxALIGN_CENTER_HORIZONTAL
|wxEXPAND
, 20 );
201 m_treeCtrl1
= new wxTreeCtrl( m_panel2
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, wxTR_DEFAULT_STYLE
);
202 fgSizer2
->Add( m_treeCtrl1
, 1, wxALL
|wxEXPAND
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
204 m_listCtrl1
= new wxListCtrl( m_panel2
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, 0 );
205 m_listCtrl1
->SetToolTip( _("wxListCtrl") );
207 fgSizer2
->Add( m_listCtrl1
, 1, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 20 );
209 m_animationCtrl1
= new wxAnimationCtrl(m_panel2
, wxID_ANY
);
210 m_animationCtrl1
->SetToolTip(_("wxAnimationCtrl"));
211 if (m_animationCtrl1
->LoadFile(wxT("throbber.gif")))
212 m_animationCtrl1
->Play();
213 fgSizer2
->Add( m_animationCtrl1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
215 m_collPane1
= new wxCollapsiblePane(m_panel2
, -1, wxT("Collapsed"));
216 wxWindow
*win
= m_collPane1
->GetPane();
217 m_collPane1
->SetToolTip(_("wxCollapsiblePane"));
219 wxBoxSizer
* collbSizer
= new wxBoxSizer(wxVERTICAL
);
220 wxStaticText
* m_collSText
= new wxStaticText(win
, -1, wxT("You can place"));
221 wxButton
* m_collBut
= new wxButton(win
, -1, wxT("anything"));
222 wxTextCtrl
* m_collText
= new wxTextCtrl(win
, -1, wxT("inside a wxCollapsiblePane"));
223 collbSizer
->Add( m_collSText
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 0 );
224 collbSizer
->Add( m_collBut
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 0 );
225 collbSizer
->Add( m_collText
, 0, wxALL
|wxEXPAND
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 0 );
226 win
->SetSizer(collbSizer
);
227 fgSizer2
->Add( m_collPane1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 5 );
229 m_collPane2
= new wxCollapsiblePane(m_panel2
, -1, wxT("Expanded"));
230 wxWindow
*win2
= m_collPane2
->GetPane();
231 m_collPane2
->SetToolTip(_("wxCollapsiblePane"));
233 wxBoxSizer
* collbSizer2
= new wxBoxSizer(wxVERTICAL
);
234 wxStaticText
* m_collSText2
= new wxStaticText(win2
, -1, wxT("You can place"));
235 wxButton
* m_collBut2
= new wxButton(win2
, -1, wxT("anything"));
236 wxTextCtrl
* m_collText2
= new wxTextCtrl(win2
, -1, wxT("inside a wxCollapsiblePane"));
237 collbSizer2
->Add( m_collSText2
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 0 );
238 collbSizer2
->Add( m_collBut2
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 0 );
239 collbSizer2
->Add( m_collText2
, 0, wxALL
|wxEXPAND
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 0 );
240 win2
->SetSizer(collbSizer2
);
242 m_collPane2
->Expand();
243 fgSizer2
->Add( m_collPane2
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 5 );
245 m_panel2
->SetSizer( fgSizer2
);
247 fgSizer2
->Fit( m_panel2
);
248 m_notebook1
->AddPage( m_panel2
, _("Choosing Controls"), false );
249 m_panel3
= new wxPanel( m_notebook1
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, wxTAB_TRAVERSAL
);
251 bSizer2
= new wxBoxSizer( wxVERTICAL
);
253 m_textCtrl1
= new wxTextCtrl( m_panel3
, wxID_ANY
, _("Single-line"), wxDefaultPosition
, wxDefaultSize
, 0 );
254 m_textCtrl1
->SetToolTip( _("wxTextCtrl") );
256 bSizer2
->Add( m_textCtrl1
, 0, wxTOP
|wxRIGHT
|wxLEFT
, 20 );
259 bSizer2
->Add( 0, 10, 0, 0, 5 );
261 m_textCtrl2
= new wxTextCtrl( m_panel3
, wxID_ANY
, _("Multi-line\nLine1\nLine2\n"), wxDefaultPosition
, wxDefaultSize
, wxTE_MULTILINE
);
262 m_textCtrl2
->SetToolTip( _("wxTextCtrl") );
264 bSizer2
->Add( m_textCtrl2
, 0, wxBOTTOM
|wxRIGHT
|wxLEFT
, 20 );
266 m_richText1
= new wxRichTextCtrl( m_panel3
, wxID_ANY
, wxEmptyString
, wxDefaultPosition
, wxSize( -1,-1 ), 0|wxVSCROLL
|wxHSCROLL
|wxNO_BORDER
|wxWANTS_CHARS
);
267 m_richText1
->SetToolTip( _("wxRichTextCtrl") );
268 m_richText1
->SetMinSize( wxSize( 200,200 ) );
270 bSizer2
->Add( m_richText1
, 0, wxALL
, 20 );
272 m_panel3
->SetSizer( bSizer2
);
274 bSizer2
->Fit( m_panel3
);
275 m_notebook1
->AddPage( m_panel3
, _("Text Richtext"), false );
276 m_panel4
= new wxPanel( m_notebook1
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, wxTAB_TRAVERSAL
);
277 wxFlexGridSizer
* fgSizer5
;
278 fgSizer5
= new wxFlexGridSizer( 2, 2, 10, 10 );
279 fgSizer5
->SetFlexibleDirection( wxBOTH
);
280 fgSizer5
->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED
);
282 m_colourPicker1
= new wxColourPickerCtrl( m_panel4
, wxID_ANY
, *wxBLACK
, wxDefaultPosition
, wxDefaultSize
, wxCLRP_DEFAULT_STYLE
);
283 m_colourPicker1
->SetToolTip( _("wxColourPickerCtrl") );
285 fgSizer5
->Add( m_colourPicker1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
287 m_fontPicker1
= new wxFontPickerCtrl( m_panel4
, wxID_ANY
, wxNullFont
, wxDefaultPosition
, wxDefaultSize
, wxFNTP_DEFAULT_STYLE
);
288 m_fontPicker1
->SetMaxPointSize( 100 );
289 m_fontPicker1
->SetToolTip( _("wxFontPickerCtrl") );
291 fgSizer5
->Add( m_fontPicker1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
293 m_filePicker1
= new wxFilePickerCtrl( m_panel4
, wxID_ANY
, wxEmptyString
, _("Select a file"), wxT("*.*"), wxDefaultPosition
, wxDefaultSize
, wxFLP_DEFAULT_STYLE
, wxDefaultValidator
, wxT("_FilePickerCtrl") );
294 m_filePicker1
->SetToolTip( _("wxFilePickerCtrl") );
296 fgSizer5
->Add( m_filePicker1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
299 fgSizer5
->Add( 0, 0, 1, wxEXPAND
, 5 );
301 m_calendar1
= new wxCalendarCtrl( m_panel4
, wxID_ANY
, wxDefaultDateTime
, wxDefaultPosition
, wxDefaultSize
, wxCAL_SHOW_HOLIDAYS
);
302 m_calendar1
->SetToolTip( _("wxCalendarCtrl") );
304 fgSizer5
->Add( m_calendar1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
306 m_datePicker1
= new wxDatePickerCtrl( m_panel4
, wxID_ANY
, wxDefaultDateTime
, wxDefaultPosition
, wxDefaultSize
, wxDP_DEFAULT
);
307 m_datePicker1
->SetToolTip( _("wxDatePickerCtrl") );
309 fgSizer5
->Add( m_datePicker1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
311 m_genericDirCtrl1
= new wxGenericDirCtrl( m_panel4
, wxID_ANY
, wxEmptyString
, wxDefaultPosition
, wxDefaultSize
, wxDIRCTRL_3D_INTERNAL
|wxSUNKEN_BORDER
, wxEmptyString
, 0, wxT("_GenericDirCtrl") );
313 m_genericDirCtrl1
->ShowHidden( false );
314 m_genericDirCtrl1
->SetToolTip( _("wxGenericDirCtrl") );
315 m_genericDirCtrl1
->SetMinSize( wxSize( -1,150 ) );
317 fgSizer5
->Add( m_genericDirCtrl1
, 1, wxEXPAND
|wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
319 m_dirPicker1
= new wxDirPickerCtrl( m_panel4
, wxID_ANY
, wxEmptyString
, _("Select a folder"), wxDefaultPosition
, wxDefaultSize
, wxDIRP_DEFAULT_STYLE
, wxDefaultValidator
, wxT("_DirPickerCtrl") );
320 m_dirPicker1
->SetToolTip( _("wxDirPickerCtrl") );
322 fgSizer5
->Add( m_dirPicker1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
324 m_panel4
->SetSizer( fgSizer5
);
326 fgSizer5
->Fit( m_panel4
);
327 m_notebook1
->AddPage( m_panel4
, _("Picker Controls"), false );
328 m_panel5
= new wxPanel( m_notebook1
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, wxTAB_TRAVERSAL
);
329 wxFlexGridSizer
* fgSizer4
;
330 fgSizer4
= new wxFlexGridSizer( 2, 2, 0, 0 );
331 fgSizer4
->SetFlexibleDirection( wxBOTH
);
332 fgSizer4
->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED
);
334 wxString m_choice1Choices
[] = { _("wxChoice"), _("Item1"), _("Item2"), _("Item3"), _("Item4") };
335 int m_choice1NChoices
= sizeof( m_choice1Choices
) / sizeof( wxString
);
336 m_choice1
= new wxChoice( m_panel5
, wxID_ANY
, wxDefaultPosition
, wxDefaultSize
, m_choice1NChoices
, m_choice1Choices
, 0 );
337 m_choice1
->SetSelection( 0 );
338 fgSizer4
->Add( m_choice1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
340 m_comboBox1
= new wxComboBox( m_panel5
, wxID_ANY
, _("wxComboBox"), wxDefaultPosition
, wxDefaultSize
, 0, NULL
, 0 );
341 m_comboBox1
->Append( _("wxComboBox") );
342 m_comboBox1
->Append( _("Item1") );
343 m_comboBox1
->Append( _("Item2") );
344 m_comboBox1
->Append( _("Item3") );
345 m_comboBox1
->Append( _("Item4") );
346 fgSizer4
->Add( m_comboBox1
, 0, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
349 fgSizer4
->Add( 0, 120, 1, wxEXPAND
, 5 );
352 fgSizer4
->Add( 0, 120, 1, wxEXPAND
, 5 );
354 m_bmpComboBox1
= new wxBitmapComboBox(m_panel5
, wxID_ANY
,_("Item1"));
355 m_bmpComboBox1
->Append(_("Item1"), wxBitmap(_T("bell.png"),wxBITMAP_TYPE_PNG
));
356 m_bmpComboBox1
->Append(_("Item2"), wxBitmap(_T("sound.png"),wxBITMAP_TYPE_PNG
));
357 m_bmpComboBox1
->Append(_("Item3"), wxBitmap(_T("bell.png"),wxBITMAP_TYPE_PNG
));
358 m_bmpComboBox1
->Append(_("Item4"), wxBitmap(_T("sound.png"),wxBITMAP_TYPE_PNG
));
359 m_bmpComboBox1
->SetToolTip(_("wxBitmapComboBox"));
360 fgSizer4
->Add( m_bmpComboBox1
, 1, wxALL
|wxALIGN_CENTER_VERTICAL
|wxALIGN_CENTER_HORIZONTAL
|wxEXPAND
, 20 );
362 m_ownerDrawnComboBox1
= wxPenStyleComboBox::CreateSample(m_panel5
);
363 m_ownerDrawnComboBox1
->SetToolTip(_("wxOwnerDrawnComboBox"));
364 fgSizer4
->Add( m_ownerDrawnComboBox1
, 1, wxALL
|wxEXPAND
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
, 20 );
367 fgSizer4
->Add( 0, 90, 1, wxEXPAND
, 5 );
370 fgSizer4
->Add( 0, 90, 1, wxEXPAND
, 5 );
372 m_comboCtrl1
= new wxComboCtrl(m_panel5
,wxID_ANY
,wxEmptyString
);
373 m_comboCtrl1
->SetText(wxT("wxComboCtrl"));
374 m_comboCtrl1
->SetToolTip(_("wxComboCtrl"));
376 ListViewComboPopup
* popupList
= new ListViewComboPopup();
377 m_comboCtrl1
->SetPopupControl(popupList
);
378 m_comboCtrl1
->SetPopupMaxHeight(80);
380 // Populate using wxListView methods
381 popupList
->InsertItem(popupList
->GetItemCount(),wxT("wxComboCtrl"));
382 popupList
->InsertItem(popupList
->GetItemCount(),wxT("with"));
383 popupList
->InsertItem(popupList
->GetItemCount(),wxT("wxListView"));
384 popupList
->InsertItem(popupList
->GetItemCount(),wxT("popup"));
385 popupList
->InsertItem(popupList
->GetItemCount(),wxT("Item1"));
386 popupList
->InsertItem(popupList
->GetItemCount(),wxT("Item2"));
387 popupList
->InsertItem(popupList
->GetItemCount(),wxT("Item3"));
389 popupList
->Select(0, true);
390 fgSizer4
->Add( m_comboCtrl1
, 1, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 20 );
392 m_comboCtrl2
= new wxComboCtrl(m_panel5
,wxID_ANY
,wxEmptyString
);
393 m_comboCtrl2
->SetText(wxT("wxComboCtrl"));
394 m_comboCtrl2
->SetToolTip(_("wxComboCtrl"));
396 TreeCtrlComboPopup
* popupTree
= new TreeCtrlComboPopup();
398 m_comboCtrl2
->SetPopupControl(popupTree
);
399 m_comboCtrl2
->SetPopupMaxHeight(80);
401 //Add a root and some nodes using wxTreeCtrl methods
402 wxTreeItemId root
= popupTree
->AddRoot(_("wxComboCtrl"));
404 popupTree
->AppendItem(root
, _("with"));
405 popupTree
->AppendItem(root
, _("wxTreeCtrl"));
407 wxTreeItemId node2
= popupTree
->AppendItem(root
, _("popout"));
408 popupTree
->AppendItem(node2
, _("Node1"));
409 popupTree
->AppendItem(node2
, _("Node2"));
411 popupTree
->ExpandAll();
412 fgSizer4
->Add( m_comboCtrl2
, 1, wxALL
|wxALIGN_CENTER_HORIZONTAL
|wxALIGN_CENTER_VERTICAL
|wxEXPAND
, 20 );
414 m_panel5
->SetSizer( fgSizer4
);
416 fgSizer4
->Fit( m_panel5
);
417 m_notebook1
->AddPage( m_panel5
, _("Drop Down Controls"), false );
419 bSizer0
->Add( m_notebook1
, 1, wxEXPAND
| wxALL
, 0 );
421 this->SetSizer( bSizer0
);
423 bSizer0
->Fit( this );
424 statusBar
= this->CreateStatusBar( 1, wxST_SIZEGRIP
, wxID_ANY
);
427 this->Connect( wxEVT_CLOSE_WINDOW
, wxCloseEventHandler( GUIFrame::OnClose
) );
428 this->Connect( m_menuSeeScr
->GetId(), wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnSeeScreenshots
) );
429 this->Connect( m_menuFileQuit
->GetId(), wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnQuit
) );
430 this->Connect( m_menuCapFullScreen
->GetId(), wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnCaptureFullScreen
) );
431 this->Connect( m_menuCapRect
->GetId(), wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnCaptureRect
) );
432 this->Connect( m_menuEndCapRect
->GetId(), wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnEndCaptureRect
) );
433 this->Connect( m_menuCapAll
->GetId(), wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnCaptureAllControls
) );
434 this->Connect( m_menuHelpAbout
->GetId(), wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnAbout
) );
435 m_notebook1
->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, wxNotebookEventHandler( GUIFrame::OnNotebookPageChanged
), NULL
, this );
436 m_notebook1
->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, wxNotebookEventHandler( GUIFrame::OnNotebookPageChanging
), NULL
, this );
439 GUIFrame::~GUIFrame()
442 this->Disconnect( wxEVT_CLOSE_WINDOW
, wxCloseEventHandler( GUIFrame::OnClose
) );
443 this->Disconnect( wxID_ANY
, wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnSeeScreenshots
) );
444 this->Disconnect( wxID_ANY
, wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnQuit
) );
445 this->Disconnect( wxID_ANY
, wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnCaptureFullScreen
) );
446 this->Disconnect( wxID_ANY
, wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnCaptureRect
) );
447 this->Disconnect( wxID_ANY
, wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnEndCaptureRect
) );
448 this->Disconnect( wxID_ANY
, wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnCaptureAllControls
) );
449 this->Disconnect( wxID_ANY
, wxEVT_COMMAND_MENU_SELECTED
, wxCommandEventHandler( GUIFrame::OnAbout
) );
450 m_notebook1
->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, wxNotebookEventHandler( GUIFrame::OnNotebookPageChanged
), NULL
, this );
451 m_notebook1
->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, wxNotebookEventHandler( GUIFrame::OnNotebookPageChanging
), NULL
, this );