]>
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 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) | |
65571936 | 9 | // Licence: wxWindows licence |
926592a8 VS |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_UNIV_CHOICE_H_ | |
13 | #define _WX_UNIV_CHOICE_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
926592a8 VS |
16 | #pragma interface "univchoice.h" |
17 | #endif | |
18 | ||
19 | #include "wx/combobox.h" | |
20 | ||
21 | // VS: This is only a *temporary* implementation, real wxChoice should not | |
22 | // derive from wxComboBox and may have different l&f | |
23 | class WXDLLEXPORT wxChoice : public wxComboBox | |
24 | { | |
25 | public: | |
6463b9f5 | 26 | wxChoice() {} |
926592a8 VS |
27 | wxChoice(wxWindow *parent, wxWindowID id, |
28 | const wxPoint& pos = wxDefaultPosition, | |
29 | const wxSize& size = wxDefaultSize, | |
30 | int n = 0, const wxString choices[] = (const wxString *) NULL, | |
31 | long style = 0, | |
32 | const wxValidator& validator = wxDefaultValidator, | |
6463b9f5 JS |
33 | const wxString& name = wxChoiceNameStr) |
34 | { | |
35 | Create(parent, id, pos, size, n, choices, style, validator, name); | |
36 | } | |
584ad2a3 MB |
37 | wxChoice(wxWindow *parent, wxWindowID id, |
38 | const wxPoint& pos, | |
39 | const wxSize& size, | |
40 | const wxArrayString& choices, | |
41 | long style = 0, | |
42 | const wxValidator& validator = wxDefaultValidator, | |
43 | const wxString& name = wxChoiceNameStr); | |
926592a8 VS |
44 | |
45 | bool Create(wxWindow *parent, wxWindowID id, | |
46 | const wxPoint& pos = wxDefaultPosition, | |
47 | const wxSize& size = wxDefaultSize, | |
48 | int n = 0, const wxString choices[] = (wxString *) NULL, | |
49 | long style = 0, | |
50 | const wxValidator& validator = wxDefaultValidator, | |
51 | const wxString& name = wxChoiceNameStr); | |
584ad2a3 MB |
52 | bool Create(wxWindow *parent, wxWindowID id, |
53 | const wxPoint& pos, | |
54 | const wxSize& size, | |
55 | const wxArrayString& choices, | |
56 | long style = 0, | |
57 | const wxValidator& validator = wxDefaultValidator, | |
58 | const wxString& name = wxChoiceNameStr); | |
926592a8 | 59 | |
926592a8 VS |
60 | private: |
61 | void OnComboBox(wxCommandEvent &event); | |
62 | ||
63 | DECLARE_EVENT_TABLE() | |
64 | DECLARE_DYNAMIC_CLASS(wxChoice) | |
65 | }; | |
66 | ||
67 | ||
68 | #endif // _WX_UNIV_CHOICE_H_ |