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 #include "wx/combobox.h" 
  17 // VS: This is only a *temporary* implementation, real wxChoice should not 
  18 //     derive from wxComboBox and may have different l&f 
  19 class WXDLLIMPEXP_CORE wxChoice 
: public wxComboBox
 
  23     wxChoice(wxWindow 
*parent
, wxWindowID id
, 
  24             const wxPoint
& pos 
= wxDefaultPosition
, 
  25             const wxSize
& size 
= wxDefaultSize
, 
  26             int n 
= 0, const wxString choices
[] = (const wxString 
*) NULL
, 
  28             const wxValidator
& validator 
= wxDefaultValidator
, 
  29             const wxString
& name 
= wxChoiceNameStr
) 
  31         Create(parent
, id
, pos
, size
, n
, choices
, style
, validator
, name
); 
  33     wxChoice(wxWindow 
*parent
, wxWindowID id
, 
  36             const wxArrayString
& choices
, 
  38             const wxValidator
& validator 
= wxDefaultValidator
, 
  39             const wxString
& name 
= wxChoiceNameStr
); 
  41     bool Create(wxWindow 
*parent
, wxWindowID id
, 
  42                 const wxPoint
& pos 
= wxDefaultPosition
, 
  43                 const wxSize
& size 
= wxDefaultSize
, 
  44                 int n 
= 0, const wxString choices
[] = NULL
, 
  46                 const wxValidator
& validator 
= wxDefaultValidator
, 
  47                 const wxString
& name 
= wxChoiceNameStr
); 
  48     bool Create(wxWindow 
*parent
, wxWindowID id
, 
  51                 const wxArrayString
& choices
, 
  53                 const wxValidator
& validator 
= wxDefaultValidator
, 
  54                 const wxString
& name 
= wxChoiceNameStr
); 
  57     void OnComboBox(wxCommandEvent 
&event
); 
  60     DECLARE_DYNAMIC_CLASS(wxChoice
) 
  64 #endif // _WX_UNIV_CHOICE_H_