]>
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
);
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
,
43 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxChoiceNameStr
);
47 void OnComboBox(wxCommandEvent
&event
);
50 DECLARE_DYNAMIC_CLASS(wxChoice
)
54 #endif // _WX_UNIV_CHOICE_H_