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