]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/choice.h
added VC++ project file
[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 #ifdef __GNUG__
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:
26 wxChoice() {}
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,
33 const wxString& name = wxChoiceNameStr)
34 {
35 Create(parent, id, pos, size, n, choices, style, validator, name);
36 }
37
38 bool Create(wxWindow *parent, wxWindowID id,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 int n = 0, const wxString choices[] = (wxString *) NULL,
42 long style = 0,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxChoiceNameStr);
45
46 private:
47 void OnComboBox(wxCommandEvent &event);
48
49 DECLARE_EVENT_TABLE()
50 DECLARE_DYNAMIC_CLASS(wxChoice)
51 };
52
53
54 #endif // _WX_UNIV_CHOICE_H_