]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/choice.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/choice.h
3 // Purpose: the universal choice
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_CHOICE_H_
13 #define _WX_UNIV_CHOICE_H_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "univchoice.h"
19 #include "wx/combobox.h"
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
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
,
32 const wxValidator
& validator
= wxDefaultValidator
,
33 const wxString
& name
= wxChoiceNameStr
)
35 Create(parent
, id
, pos
, size
, n
, choices
, style
, validator
, name
);
37 wxChoice(wxWindow
*parent
, wxWindowID id
,
40 const wxArrayString
& choices
,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxChoiceNameStr
);
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
,
50 const wxValidator
& validator
= wxDefaultValidator
,
51 const wxString
& name
= wxChoiceNameStr
);
52 bool Create(wxWindow
*parent
, wxWindowID id
,
55 const wxArrayString
& choices
,
57 const wxValidator
& validator
= wxDefaultValidator
,
58 const wxString
& name
= wxChoiceNameStr
);
61 void OnComboBox(wxCommandEvent
&event
);
64 DECLARE_DYNAMIC_CLASS(wxChoice
)
68 #endif // _WX_UNIV_CHOICE_H_