1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/cocoa/checklst.mm
3 // Purpose: wxCheckListBox
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
13 #if wxUSE_CHECKLISTBOX
15 #include "wx/checklst.h"
22 BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
24 // WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
26 bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
29 const wxArrayString& choices,
31 const wxValidator& validator,
34 wxCArrayString chs(choices);
36 return Create(parent, winid, pos, size, chs.GetCount(), chs.GetStrings(),
37 style, validator, name);
40 bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
43 int n, const wxString choices[],
45 const wxValidator& validator,
48 if(!CreateControl(parent,winid,pos,size,style,validator,name))
52 m_parent->CocoaAddChild(this);
56 wxCheckListBox::~wxCheckListBox()
60 bool wxCheckListBox::IsChecked(unsigned int item) const
66 void wxCheckListBox::Check(unsigned int item, bool check)