]>
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 bool Create(wxWindow
*parent
, wxWindowID id
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
38 int n
= 0, const wxString choices
[] = (wxString
*) NULL
,
40 const wxValidator
& validator
= wxDefaultValidator
,
41 const wxString
& name
= wxChoiceNameStr
);
44 void OnComboBox(wxCommandEvent
&event
);
47 DECLARE_DYNAMIC_CLASS(wxChoice
)
51 #endif // _WX_UNIV_CHOICE_H_