1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/choice.h
3 // Purpose: the universal choice
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_CHOICE_H_
12 #define _WX_UNIV_CHOICE_H_
14 #include "wx/combobox.h"
16 // VS: This is only a *temporary* implementation, real wxChoice should not
17 // derive from wxComboBox and may have different l&f
18 class WXDLLIMPEXP_CORE wxChoice
: public wxComboBox
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
,
27 const wxValidator
& validator
= wxDefaultValidator
,
28 const wxString
& name
= wxChoiceNameStr
)
30 Create(parent
, id
, pos
, size
, n
, choices
, style
, validator
, name
);
32 wxChoice(wxWindow
*parent
, wxWindowID id
,
35 const wxArrayString
& choices
,
37 const wxValidator
& validator
= wxDefaultValidator
,
38 const wxString
& name
= wxChoiceNameStr
);
40 bool Create(wxWindow
*parent
, wxWindowID id
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 int n
= 0, const wxString choices
[] = NULL
,
45 const wxValidator
& validator
= wxDefaultValidator
,
46 const wxString
& name
= wxChoiceNameStr
);
47 bool Create(wxWindow
*parent
, wxWindowID id
,
50 const wxArrayString
& choices
,
52 const wxValidator
& validator
= wxDefaultValidator
,
53 const wxString
& name
= wxChoiceNameStr
);
56 void OnComboBox(wxCommandEvent
&event
);
59 DECLARE_DYNAMIC_CLASS(wxChoice
)
63 #endif // _WX_UNIV_CHOICE_H_