#include "wx/univ/inphand.h"
#include "wx/univ/theme.h"
-// ============================================================================
-// implementation of wxCheckListBoxBase
-// ============================================================================
-
-wxCheckListBoxBase::wxCheckListBoxBase()
-{
-}
-
// ============================================================================
// implementation of wxCheckListBox
// ============================================================================
// creation
// ----------------------------------------------------------------------------
-wxCheckListBox::wxCheckListBox()
+void wxCheckListBox::Init()
{
- Init();
}
wxCheckListBox::wxCheckListBox(wxWindow *parent,
wxWindowID id,
- const wxPoint& pos,
- const wxSize& size,
- int nStrings,
- const wxString *choices,
+ const wxPoint &pos,
+ const wxSize &size,
+ const wxArrayString& choices,
long style,
const wxValidator& validator,
- const wxString& name)
+ const wxString &name)
{
Init();
- Create(parent, id, pos, size, nStrings, choices, style, validator, name);
+ Create(parent, id, pos, size, choices, style, validator, name);
}
-void wxCheckListBox::Init()
+bool wxCheckListBox::Create(wxWindow *parent,
+ wxWindowID id,
+ const wxPoint &pos,
+ const wxSize &size,
+ const wxArrayString& choices,
+ long style,
+ const wxValidator& validator,
+ const wxString &name)
{
+ wxCArrayString chs(choices);
+
+ return Create(parent, id, pos, size, chs.GetCount(), chs.GetStrings(),
+ style, validator, name);
}
bool wxCheckListBox::Create(wxWindow *parent,