]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/choice.h
synchronize GTK2 minimum version in docs
[wxWidgets.git] / include / wx / univ / choice.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/choice.h
3 // Purpose: the universal choice
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 30.08.00
7 // RCS-ID: $Id$
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_UNIV_CHOICE_H_
13 #define _WX_UNIV_CHOICE_H_
14
15 #include "wx/combobox.h"
16
17 // VS: This is only a *temporary* implementation, real wxChoice should not
18 // derive from wxComboBox and may have different l&f
19 class WXDLLIMPEXP_CORE wxChoice : public wxComboBox
20 {
21 public:
22 wxChoice() {}
23 wxChoice(wxWindow *parent, wxWindowID id,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 int n = 0, const wxString choices[] = (const wxString *) NULL,
27 long style = 0,
28 const wxValidator& validator = wxDefaultValidator,
29 const wxString& name = wxChoiceNameStr)
30 {
31 Create(parent, id, pos, size, n, choices, style, validator, name);
32 }
33 wxChoice(wxWindow *parent, wxWindowID id,
34 const wxPoint& pos,
35 const wxSize& size,
36 const wxArrayString& choices,
37 long style = 0,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxChoiceNameStr);
40
41 bool Create(wxWindow *parent, wxWindowID id,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 int n = 0, const wxString choices[] = NULL,
45 long style = 0,
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxChoiceNameStr);
48 bool Create(wxWindow *parent, wxWindowID id,
49 const wxPoint& pos,
50 const wxSize& size,
51 const wxArrayString& choices,
52 long style = 0,
53 const wxValidator& validator = wxDefaultValidator,
54 const wxString& name = wxChoiceNameStr);
55
56 private:
57 void OnComboBox(wxCommandEvent &event);
58
59 DECLARE_EVENT_TABLE()
60 DECLARE_DYNAMIC_CLASS(wxChoice)
61 };
62
63
64 #endif // _WX_UNIV_CHOICE_H_