]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/picker.cpp
4569a620d0138d776a267bd5bd926bac14af8f6b
[wxWidgets.git] / samples / widgets / picker.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Program: wxWidgets Widgets Sample
3 // Name: picker.cpp
4 // Purpose: Part of the widgets sample showing wx*PickerCtrl
5 // Author: Francesco Montorsi
6 // Created: 22/4/2006
7 // Id: $Id$
8 // Copyright: (c) 2006 Francesco Montorsi
9 // License: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 // for compilers that support precompilation, includes "wx/wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #if wxUSE_COLOURPICKERCTRL || wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL || wxUSE_FONTPICKERCTRL
28
29 // for all others, include the necessary headers
30 #ifndef WX_PRECOMP
31 #include "wx/app.h"
32 #include "wx/log.h"
33 #endif
34
35 #include "wx/artprov.h"
36 #include "wx/sizer.h"
37 #include "wx/stattext.h"
38 #include "wx/checkbox.h"
39 #include "wx/imaglist.h"
40
41 #include "wx/clrpicker.h"
42 #include "wx/filepicker.h"
43 #include "wx/fontpicker.h"
44
45 #include "widgets.h"
46
47 #include "icons/picker.xpm"
48
49 // ----------------------------------------------------------------------------
50 // constants
51 // ----------------------------------------------------------------------------
52
53 // control ids
54 enum
55 {
56 PickerPage_Reset = wxID_HIGHEST,
57
58 #if wxUSE_COLOURPICKERCTRL
59 PickerPage_Colour,
60 #endif
61 #if wxUSE_FILEPICKERCTRL
62 PickerPage_File,
63 #endif
64 #if wxUSE_DIRPICKERCTRL
65 PickerPage_Dir,
66 #endif
67 #if wxUSE_FONTPICKERCTRL
68 PickerPage_Font
69 #endif
70 };
71
72
73 // ----------------------------------------------------------------------------
74 // PickerWidgetsPage
75 // ----------------------------------------------------------------------------
76
77 class PickerWidgetsPage : public WidgetsPage
78 {
79 public:
80 PickerWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
81 virtual ~PickerWidgetsPage(){};
82
83 virtual wxControl *GetWidget() const { /*return m_fontPicker;*/ return NULL; }
84 virtual void RecreateWidget() { RecreateAllPickers(); }
85
86 protected:
87 enum PickerKind
88 {
89 Picker_None = -1,
90 Picker_Colour,
91 Picker_File,
92 Picker_Dir,
93 Picker_Font
94 };
95
96 // called only once at first construction
97 void CreatePickers(PickerKind picker);
98
99 // called to recreate an existing control
100 void RecreatePicker(PickerKind picker);
101
102 // recreate all existing picker controls
103 void RecreateAllPickers();
104
105 // restore the checkboxes state to the initial values
106 void Reset();
107
108 // get the initial style for the picker of the given kind
109 long GetPickerStyle(PickerKind kind);
110
111
112 // the pickers and the relative event handlers
113 #if wxUSE_COLOURPICKERCTRL
114 wxColourPickerCtrl *m_clrPicker;
115 void OnColourChange(wxColourPickerEvent &ev);
116 #endif
117 #if wxUSE_FILEPICKERCTRL
118 wxFilePickerCtrl *m_filePicker;
119 void OnFileChange(wxFileDirPickerEvent &ev);
120 #endif
121 #if wxUSE_DIRPICKERCTRL
122 wxDirPickerCtrl *m_dirPicker;
123 void OnDirChange(wxFileDirPickerEvent &ev);
124 #endif
125 #if wxUSE_FONTPICKERCTRL
126 wxFontPickerCtrl *m_fontPicker;
127 void OnFontChange(wxFontPickerEvent &ev);
128 #endif
129 void OnCheckBox(wxCommandEvent &ev);
130 void OnButtonReset(wxCommandEvent &ev);
131
132
133 // other controls
134 // --------------
135
136 wxCheckBox *m_chkColourTextCtrl,
137 *m_chkColourShowLabel;
138
139 wxCheckBox *m_chkFileTextCtrl,
140 *m_chkFileOverwritePrompt,
141 *m_chkFileMustExist,
142 *m_chkFileChangeDir;
143
144 wxCheckBox *m_chkDirTextCtrl,
145 *m_chkDirChangeDir,
146 *m_chkDirMustExist;
147
148 wxCheckBox *m_chkFontTextCtrl,
149 *m_chkFontDescAsLabel,
150 *m_chkFontUseFontForLabel;
151
152 wxFlexGridSizer *m_sizerPicker;
153
154 private:
155 DECLARE_EVENT_TABLE()
156 DECLARE_WIDGETS_PAGE(PickerWidgetsPage)
157 };
158
159 // ----------------------------------------------------------------------------
160 // event tables
161 // ----------------------------------------------------------------------------
162
163 BEGIN_EVENT_TABLE(PickerWidgetsPage, WidgetsPage)
164 EVT_BUTTON(PickerPage_Reset, PickerWidgetsPage::OnButtonReset)
165
166 #if wxUSE_COLOURPICKERCTRL
167 EVT_COLOURPICKER_CHANGED(PickerPage_Colour, PickerWidgetsPage::OnColourChange)
168 #endif
169 #if wxUSE_FILEPICKERCTRL
170 EVT_FILEPICKER_CHANGED(PickerPage_File, PickerWidgetsPage::OnFileChange)
171 #endif
172 #if wxUSE_DIRPICKERCTRL
173 EVT_DIRPICKER_CHANGED(PickerPage_Dir, PickerWidgetsPage::OnDirChange)
174 #endif
175 #if wxUSE_FONTPICKERCTRL
176 EVT_FONTPICKER_CHANGED(PickerPage_Font, PickerWidgetsPage::OnFontChange)
177 #endif
178
179 EVT_CHECKBOX(wxID_ANY, PickerWidgetsPage::OnCheckBox)
180 END_EVENT_TABLE()
181
182 // ============================================================================
183 // implementation
184 // ============================================================================
185
186 IMPLEMENT_WIDGETS_PAGE(PickerWidgetsPage, _T("Pickers"), PICKER_CTRLS);
187
188 PickerWidgetsPage::PickerWidgetsPage(WidgetsBookCtrl *book,
189 wxImageList *imaglist)
190 : WidgetsPage(book, imaglist, picker_xpm)
191 {
192 imaglist->Add(wxBitmap(picker_xpm));
193
194 // left pane
195 wxSizer *boxleft = new wxBoxSizer(wxVERTICAL);
196
197 #if wxUSE_COLOURPICKERCTRL
198 wxStaticBoxSizer *clrbox = new wxStaticBoxSizer(wxVERTICAL, this, _T("&ColourPicker style"));
199 m_chkColourTextCtrl = CreateCheckBoxAndAddToSizer(clrbox, _T("With textctrl"), false);
200 m_chkColourShowLabel = CreateCheckBoxAndAddToSizer(clrbox, _T("With label"), false);
201 boxleft->Add(clrbox, 0, wxALL|wxGROW, 5);
202 boxleft->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer
203 #endif // wxUSE_COLOURPICKERCTRL
204
205 #if wxUSE_FILEPICKERCTRL
206 wxStaticBoxSizer *filebox = new wxStaticBoxSizer(wxVERTICAL, this, _T("&FilePicker style"));
207 m_chkFileTextCtrl = CreateCheckBoxAndAddToSizer(filebox, _T("With textctrl"), false);
208 m_chkFileOverwritePrompt = CreateCheckBoxAndAddToSizer(filebox, _T("Overwrite prompt"), false);
209 m_chkFileMustExist = CreateCheckBoxAndAddToSizer(filebox, _T("File must exist"), false);
210 m_chkFileChangeDir = CreateCheckBoxAndAddToSizer(filebox, _T("Change working dir"), false);
211 boxleft->Add(filebox, 0, wxALL|wxGROW, 5);
212 boxleft->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer
213 #endif // wxUSE_FILEPICKERCTRL
214
215 #if wxUSE_DIRPICKERCTRL
216 wxStaticBoxSizer *dirbox = new wxStaticBoxSizer(wxVERTICAL, this, _T("&DirPicker style"));
217 m_chkDirTextCtrl = CreateCheckBoxAndAddToSizer(dirbox, _T("With textctrl"), false);
218 m_chkDirMustExist = CreateCheckBoxAndAddToSizer(dirbox, _T("Dir must exist"), false);
219 m_chkDirChangeDir = CreateCheckBoxAndAddToSizer(dirbox, _T("Change working dir"), false);
220 boxleft->Add(dirbox, 0, wxALL|wxGROW, 5);
221 boxleft->Add(1, 1, 1, wxGROW | wxALL, 5); // spacer
222 #endif // wxUSE_DIRPICKERCTRL
223
224 #if wxUSE_FONTPICKERCTRL
225 wxStaticBoxSizer *fontbox = new wxStaticBoxSizer(wxVERTICAL, this, _T("&FontPicker style"));
226 m_chkFontTextCtrl = CreateCheckBoxAndAddToSizer(fontbox, _T("With textctrl"));
227 m_chkFontDescAsLabel = CreateCheckBoxAndAddToSizer(fontbox, _T("Font desc as btn label"));
228 m_chkFontUseFontForLabel = CreateCheckBoxAndAddToSizer(fontbox, _T("Use font for label"), false);
229 boxleft->Add(fontbox, 0, wxALL|wxGROW, 5);
230 #endif // wxUSE_FONTPICKERCTRL
231
232 boxleft->Add(new wxButton(this, PickerPage_Reset, _T("&Reset")),
233 0, wxALIGN_CENTRE_HORIZONTAL | wxALL, 15);
234
235 Reset(); // set checkboxes state
236
237 // create pickers
238 m_clrPicker = NULL;
239 m_filePicker = NULL;
240 m_fontPicker = NULL;
241 m_dirPicker = NULL;
242
243 int nrows = 0;
244 #if wxUSE_COLOURPICKERCTRL
245 CreatePickers(Picker_Colour);
246 nrows++;
247 #endif // wxUSE_COLOURPICKERCTRL
248
249 #if wxUSE_FILEPICKERCTRL
250 CreatePickers(Picker_File);
251 nrows++;
252 #endif // wxUSE_FILEPICKERCTRL
253
254 #if wxUSE_DIRPICKERCTRL
255 CreatePickers(Picker_Dir);
256 nrows++;
257 #endif // wxUSE_DIRPICKERCTRL
258
259 #if wxUSE_FONTPICKERCTRL
260 CreatePickers(Picker_Font);
261 nrows++;
262 #endif // wxUSE_FONTPICKERCTRL
263
264 m_sizerPicker = new wxFlexGridSizer(nrows, 2, 0, 0); // 4 rows x 2 columns
265 #if wxUSE_COLOURPICKERCTRL
266 m_sizerPicker->Add(new wxStaticText(this, wxID_ANY, wxT("wxColourPickerCtrl:")),
267 0, wxALIGN_CENTER | wxALL, 5);
268 m_sizerPicker->Add(m_clrPicker, 1, wxGROW | wxALL, 5);
269 #endif
270 #if wxUSE_FILEPICKERCTRL
271 m_sizerPicker->Add(new wxStaticText(this, wxID_ANY, wxT("wxFilePickerCtrl:")),
272 0, wxALIGN_CENTER | wxALL, 5);
273 m_sizerPicker->Add(m_filePicker, 1, wxGROW | wxALL, 5);
274 #endif
275 #if wxUSE_DIRPICKERCTRL
276 m_sizerPicker->Add(new wxStaticText(this, wxID_ANY, wxT("wxDirPickerCtrl:")),
277 0, wxALIGN_CENTER | wxALL, 5);
278 m_sizerPicker->Add(m_dirPicker, 1, wxGROW | wxALL, 5);
279 #endif
280 #if wxUSE_FONTPICKERCTRL
281 m_sizerPicker->Add(new wxStaticText(this, wxID_ANY, wxT("wxFontPickerCtrl:")),
282 0, wxALIGN_CENTER | wxALL, 5);
283 m_sizerPicker->Add(m_fontPicker, 1, wxGROW | wxALL, 5);
284 #endif
285
286 m_sizerPicker->AddGrowableCol(1, 3);
287
288 // right pane
289 wxStaticBoxSizer *
290 boxright = new wxStaticBoxSizer(wxVERTICAL, this, _T("Pickers"));
291 boxright->Add(m_sizerPicker, 1, wxGROW | wxALL, 5);
292
293 // global pane
294 wxSizer *sz = new wxBoxSizer(wxHORIZONTAL);
295 sz->Add(boxleft, 0, wxGROW|wxALL, 5);
296 sz->Add(boxright, 1, wxGROW|wxALL, 5);
297
298 SetSizerAndFit(sz);
299 }
300
301 void PickerWidgetsPage::CreatePickers(PickerKind picker)
302 {
303 switch ( picker )
304 {
305 #if wxUSE_COLOURPICKERCTRL
306 case Picker_Colour:
307 delete m_clrPicker;
308
309 m_clrPicker = new wxColourPickerCtrl(this, PickerPage_Colour, *wxRED,
310 wxDefaultPosition, wxDefaultSize,
311 GetPickerStyle(Picker_Colour));
312 break;
313 #endif // wxUSE_COLOURPICKERCTRL
314
315 #if wxUSE_FILEPICKERCTRL
316 case Picker_File:
317 delete m_filePicker;
318
319 // pass an empty string as initial file
320 m_filePicker = new wxFilePickerCtrl(this, PickerPage_File,
321 wxEmptyString,
322 wxT("Hello!"), wxT("*"),
323 wxDefaultPosition, wxDefaultSize,
324 GetPickerStyle(Picker_File));
325 break;
326 #endif // wxUSE_FILEPICKERCTRL
327
328 #if wxUSE_DIRPICKERCTRL
329 case Picker_Dir:
330 delete m_dirPicker;
331
332 m_dirPicker = new wxDirPickerCtrl(this, PickerPage_Dir,
333 wxGetHomeDir(), wxT("Hello!"),
334 wxDefaultPosition, wxDefaultSize,
335 GetPickerStyle(Picker_Dir));
336 break;
337 #endif // wxUSE_DIRPICKERCTRL
338
339 #if wxUSE_FONTPICKERCTRL
340 case Picker_Font:
341 delete m_fontPicker;
342
343 m_fontPicker = new wxFontPickerCtrl(this, PickerPage_Font,
344 *wxSWISS_FONT,
345 wxDefaultPosition, wxDefaultSize,
346 GetPickerStyle(Picker_Font));
347 break;
348 #endif // wxUSE_FONTPICKERCTRL
349
350 default:
351 wxFAIL_MSG( _T("unknown picker kind") );
352 }
353 }
354
355 long PickerWidgetsPage::GetPickerStyle(PickerKind picker)
356 {
357 long style = 0;
358
359 switch (picker)
360 {
361 #if wxUSE_COLOURPICKERCTRL
362 case Picker_Colour:
363 if ( m_chkColourTextCtrl->GetValue() )
364 style |= wxCLRP_USE_TEXTCTRL;
365
366 if ( m_chkColourShowLabel->GetValue() )
367 style |= wxCLRP_SHOW_LABEL;
368
369 break;
370 #endif // wxUSE_COLOURPICKERCTRL
371
372 #if wxUSE_FILEPICKERCTRL
373 case Picker_File:
374 if ( m_chkFileTextCtrl->GetValue() )
375 style |= wxFLP_USE_TEXTCTRL;
376
377 if ( m_chkFileOverwritePrompt->GetValue() )
378 style |= wxFLP_OVERWRITE_PROMPT;
379
380 if ( m_chkFileMustExist->GetValue() )
381 style |= wxFLP_FILE_MUST_EXIST;
382
383 if ( m_chkFileChangeDir->GetValue() )
384 style |= wxFLP_CHANGE_DIR;
385
386 break;
387 #endif // wxUSE_FILEPICKERCTRL
388
389 #if wxUSE_DIRPICKERCTRL
390 case Picker_Dir:
391 if ( m_chkDirTextCtrl->GetValue() )
392 style |= wxDIRP_USE_TEXTCTRL;
393
394 if ( m_chkDirMustExist->GetValue() )
395 style |= wxDIRP_DIR_MUST_EXIST;
396
397 if ( m_chkDirChangeDir->GetValue() )
398 style |= wxDIRP_CHANGE_DIR;
399
400 break;
401 #endif // wxUSE_DIRPICKERCTRL
402
403 #if wxUSE_FONTPICKERCTRL
404 case Picker_Font:
405 if ( m_chkFontTextCtrl->GetValue() )
406 style |= wxFNTP_USE_TEXTCTRL;
407
408 if ( m_chkFontUseFontForLabel->GetValue() )
409 style |= wxFNTP_USEFONT_FOR_LABEL;
410
411 if ( m_chkFontDescAsLabel->GetValue() )
412 style |= wxFNTP_FONTDESC_AS_LABEL;
413
414 break;
415 #endif // wxUSE_FONTPICKERCTRL
416
417 default:
418 wxFAIL_MSG( _T("unknown picker kind") );
419 }
420
421 return style;
422 }
423
424 void PickerWidgetsPage::RecreatePicker(PickerKind picker)
425 {
426 switch ( picker )
427 {
428 #if wxUSE_COLOURPICKERCTRL
429 case Picker_Colour:
430 m_sizerPicker->Remove(1);
431 CreatePickers(Picker_Colour);
432 m_sizerPicker->Insert(1, m_clrPicker, 1, wxGROW|wxALL, 5);
433 break;
434 #endif // wxUSE_COLOURPICKERCTRL
435
436 #if wxUSE_FILEPICKERCTRL
437 case Picker_File:
438 m_sizerPicker->Remove(3);
439 CreatePickers(Picker_File);
440 m_sizerPicker->Insert(3, m_filePicker, 1, wxGROW|wxALL, 5);
441 break;
442 #endif // wxUSE_FILEPICKERCTRL
443
444 #if wxUSE_DIRPICKERCTRL
445 case Picker_Dir:
446 m_sizerPicker->Remove(5);
447 CreatePickers(Picker_Dir);
448 m_sizerPicker->Insert(5, m_dirPicker, 1, wxGROW|wxALL, 5);
449 break;
450 #endif // wxUSE_DIRPICKERCTRL
451
452 #if wxUSE_FONTPICKERCTRL
453 case Picker_Font:
454 wxASSERT(m_sizerPicker->Remove(7));
455 CreatePickers(Picker_Font);
456 m_sizerPicker->Insert(7, m_fontPicker, 1, wxGROW|wxALL, 5);
457 break;
458 #endif // wxUSE_FONTPICKERCTRL
459
460 default:
461 wxFAIL_MSG( _T("unknown picker kind") );
462 }
463
464 m_sizerPicker->Layout();
465 }
466
467 void PickerWidgetsPage::RecreateAllPickers()
468 {
469 #if wxUSE_COLOURPICKERCTRL
470 RecreatePicker(Picker_Colour);
471 #endif // wxUSE_COLOURPICKERCTRL
472
473 #if wxUSE_FILEPICKERCTRL
474 RecreatePicker(Picker_File);
475 #endif // wxUSE_FILEPICKERCTRL
476
477 #if wxUSE_DIRPICKERCTRL
478 RecreatePicker(Picker_Dir);
479 #endif // wxUSE_DIRPICKERCTRL
480
481 #if wxUSE_FONTPICKERCTRL
482 RecreatePicker(Picker_Font);
483 #endif // wxUSE_FONTPICKERCTRL
484 }
485
486 void PickerWidgetsPage::Reset()
487 {
488 #if wxUSE_COLOURPICKERCTRL
489 m_chkColourTextCtrl->SetValue((wxCLRP_DEFAULT_STYLE & wxCLRP_USE_TEXTCTRL) != 0);
490 m_chkColourShowLabel->SetValue((wxCLRP_DEFAULT_STYLE & wxCLRP_SHOW_LABEL) != 0);
491 #endif
492
493 #if wxUSE_FILEPICKERCTRL
494 m_chkFileTextCtrl->SetValue((wxFLP_DEFAULT_STYLE & wxFLP_USE_TEXTCTRL) != 0);
495 m_chkFileOverwritePrompt->SetValue((wxFLP_DEFAULT_STYLE & wxFLP_OVERWRITE_PROMPT) != 0);
496 m_chkFileMustExist->SetValue((wxFLP_DEFAULT_STYLE & wxFLP_FILE_MUST_EXIST) != 0);
497 m_chkFileChangeDir->SetValue((wxFLP_DEFAULT_STYLE & wxFLP_CHANGE_DIR) != 0);
498 #endif
499
500 #if wxUSE_DIRPICKERCTRL
501 m_chkDirTextCtrl->SetValue((wxDIRP_DEFAULT_STYLE & wxDIRP_USE_TEXTCTRL) != 0);
502 m_chkDirMustExist->SetValue((wxDIRP_DEFAULT_STYLE & wxDIRP_DIR_MUST_EXIST) != 0);
503 m_chkDirChangeDir->SetValue((wxDIRP_DEFAULT_STYLE & wxDIRP_CHANGE_DIR) != 0);
504 #endif
505
506 #if wxUSE_FONTPICKERCTRL
507 m_chkFontTextCtrl->SetValue((wxFNTP_DEFAULT_STYLE & wxFNTP_USE_TEXTCTRL) != 0);
508 m_chkFontUseFontForLabel->SetValue((wxFNTP_DEFAULT_STYLE & wxFNTP_USEFONT_FOR_LABEL) != 0);
509 m_chkFontDescAsLabel->SetValue((wxFNTP_DEFAULT_STYLE & wxFNTP_FONTDESC_AS_LABEL) != 0);
510 #endif
511 }
512
513
514 // ----------------------------------------------------------------------------
515 // event handlers
516 // ----------------------------------------------------------------------------
517
518 void PickerWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event))
519 {
520 Reset();
521
522 RecreateAllPickers();
523 }
524
525 #if wxUSE_COLOURPICKERCTRL
526 void PickerWidgetsPage::OnColourChange(wxColourPickerEvent& event)
527 {
528 wxLogMessage(wxT("The colour changed to '%s' !"),
529 event.GetColour().GetAsString(wxC2S_CSS_SYNTAX).c_str());
530 }
531 #endif
532 #if wxUSE_FILEPICKERCTRL
533 void PickerWidgetsPage::OnFileChange(wxFileDirPickerEvent& event)
534 {
535 wxLogMessage(wxT("The file changed to '%s' ! The current working directory is '%s'"),
536 event.GetPath().c_str(), wxGetCwd().c_str());
537 }
538 #endif
539 #if wxUSE_DIRPICKERCTRL
540 void PickerWidgetsPage::OnDirChange(wxFileDirPickerEvent& event)
541 {
542 wxLogMessage(wxT("The directory changed to '%s' ! The current working directory is '%s'"),
543 event.GetPath().c_str(), wxGetCwd().c_str());
544 }
545 #endif
546 #if wxUSE_FONTPICKERCTRL
547 void PickerWidgetsPage::OnFontChange(wxFontPickerEvent& event)
548 {
549 wxLogMessage(wxT("The font changed to '%s' with size %d !"),
550 event.GetFont().GetFaceName().c_str(), event.GetFont().GetPointSize());
551 }
552 #endif
553
554 void PickerWidgetsPage::OnCheckBox(wxCommandEvent &event)
555 {
556 if (event.GetEventObject() == m_chkColourTextCtrl ||
557 event.GetEventObject() == m_chkColourShowLabel)
558 RecreatePicker(Picker_Colour);
559
560 if (event.GetEventObject() == m_chkFileTextCtrl ||
561 event.GetEventObject() == m_chkFileOverwritePrompt ||
562 event.GetEventObject() == m_chkFileMustExist ||
563 event.GetEventObject() == m_chkFileChangeDir)
564 RecreatePicker(Picker_File);
565
566 if (event.GetEventObject() == m_chkDirTextCtrl ||
567 event.GetEventObject() == m_chkDirChangeDir ||
568 event.GetEventObject() == m_chkDirMustExist)
569 RecreatePicker(Picker_Dir);
570
571 if (event.GetEventObject() == m_chkFontTextCtrl ||
572 event.GetEventObject() == m_chkFontDescAsLabel ||
573 event.GetEventObject() == m_chkFontUseFontForLabel)
574 RecreatePicker(Picker_Font);
575 }
576
577 #endif // wxUSE_COLOURPICKERCTRL || wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL || wxUSE_FONTPICKERCTRL